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

feat: Be explicit about span vs resource attributes #282

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

andersliland
Copy link
Contributor

@andersliland andersliland commented Jan 12, 2024

@andersliland andersliland self-assigned this Jan 12, 2024
@andersliland andersliland marked this pull request as ready for review January 12, 2024 09:07
@andersliland andersliland force-pushed the document-span-attributes branch from 776ab9e to 68e2f40 Compare January 12, 2024 09:09
@andersliland andersliland requested a review from eirsyl January 12, 2024 09:11
@@ -13,15 +13,15 @@ def configure_tracer(
enabled: bool,
endpoint: str,
service_name: str,
service_attributes: dict[str, Any] | None = None,
resource_attributes: dict[str, Any] | None = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

This will break the api, so we need to do a major release for this change. I like that the api will be consistent with the visualization in grafana.

Copy link
Contributor

Choose a reason for hiding this comment

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

I will probably also use the opportunity to make other minor breaking api changes before we release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

Can we add span attribute as a argument somewhere as well.

Hiding the ddtrace set tags config?

Copy link
Contributor

Choose a reason for hiding this comment

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

Experience has showed that wrapping the ddtrace api is not popular. So I would just let it be :)

@gbbirkisson gbbirkisson merged commit af9ee43 into main Jan 24, 2024
5 checks passed
@gbbirkisson gbbirkisson deleted the document-span-attributes branch January 24, 2024 13:02
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