Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the wavefront-sdk-go to support Kubernetes environments #47

Merged
merged 3 commits into from
May 26, 2020

Conversation

laullon
Copy link
Contributor

@laullon laullon commented May 21, 2020

No description provided.

@laullon laullon requested a review from vikramraman May 21, 2020 09:41
func (app *Tags) AddCustomTagsFromEnv(regx string) {
r, err := regexp.Compile(regx)
if err != nil {
log.Printf("Error creating custom tags: %v\n", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return an error here rather than just log it?


// AddCustomTagFromEnv Set a custom tag from the given environment variable.
func (app *Tags) AddCustomTagFromEnv(varName, tag string) {
v := os.Getenv(varName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe return an error if the env var doesn't exist?

@vikramraman vikramraman merged commit 913ff76 into master May 26, 2020
@vikramraman vikramraman deleted the laullon/MONIT-18301 branch June 17, 2020 20:19
laullon added a commit that referenced this pull request Jun 30, 2020
* master:
  Add content on custom tracing port (#56)
  Update the README.MD file (#54)
  speed up histo tests (#53)
  clarify 64-bit misalignment
  Align LineHandler struct fields to allow atomic access (#52)
  tweak source formatting
  Enhance the wavefront-sdk-go to support Kubernetes environments (#47)

# Conflicts:
#	application/application.go
#	internal/formatter.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants