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

Set 'env' to 'none' if not set or empty #4765

Merged

Conversation

nikita-tkachenko-datadog
Copy link
Contributor

What Does This Do

This change updates span data normalisation logic used by DD Intake writer (i.e. in configurations where the tracer writes directly to backend, with no DD Agent involved).
The logic is updated so that env tag is set to none if no other value is provided for it (or if provided value is empty).

Motivation

This was requested by the backend.

Additional Notes

Normally this data normalisation is done by the agent, but in configurations where the tracer writes directly to the backend, it has to be replicated in the tracer.

@nikita-tkachenko-datadog nikita-tkachenko-datadog added comp: ci visibility Continuous Integration Visibility type: bug labels Feb 19, 2023
@nikita-tkachenko-datadog nikita-tkachenko-datadog marked this pull request as ready for review February 19, 2023 13:06
"" | TraceUtils.DEFAULT_SERVICE_NAME
"good" | "good"
"bad\$service" | "bad_service"
service | expected
Copy link
Member

Choose a reason for hiding this comment

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

Unless there's an actual required change here, or spotless is complaining in CI, it's better to avoid unrelated formatting changes in PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point!
I think the Save Actions plugin config suggested in our contributing guide is too "eager".
I had to change Reformat file to Reformat only changed code to get rid of the extra changes

@nikita-tkachenko-datadog nikita-tkachenko-datadog merged commit e68f426 into master Feb 22, 2023
@nikita-tkachenko-datadog nikita-tkachenko-datadog deleted the nikita-tkachenko/fix-default-env-value branch February 22, 2023 10:32
@github-actions github-actions bot added this to the 1.9.0 milestone Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: ci visibility Continuous Integration Visibility type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants