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: add instrumentation scope support #336

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Conversation

nityanandagohain
Copy link
Member

@nityanandagohain nityanandagohain commented Jun 17, 2024

Otel collector changes for SigNoz/signoz#2705

@srikanthccv
Copy link
Member

@nityanandagohain
Copy link
Member Author

nityanandagohain commented Jun 17, 2024

I was planning to just introduce the name first, but I guess it's better to introduce the version as well.

Let me make the changes.

For instrumentation scope attribute do you think it's better to make changes now ?

@srikanthccv
Copy link
Member

I suggest adding the attributes as well so you don't have to come back to it again in future if somebody asks for it.

@nityanandagohain
Copy link
Member Author

nityanandagohain commented Jun 17, 2024

hmm makes sense, regarding the implementation of it do see any cons with storing the attributes in a similar way to that of resource attributes. Here will we will name it as instrumentation_scope_string_key, instrumentation_scope_string_value.

@srikanthccv
Copy link
Member

I don't see any issue.

@nityanandagohain
Copy link
Member Author

have added support for name, version and attributes.

Copy link
Contributor

@raj-k-singh raj-k-singh left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@nityanandagohain nityanandagohain merged commit b23b7b8 into main Jul 1, 2024
3 checks passed
@nityanandagohain nityanandagohain deleted the issue_2705 branch July 1, 2024 08:47

scopeAttributes := attributesToSlice(scope.Attributes(), true)

err := addAttrsToTagStatement(tagStatement, "instrumentation_scope", resources)
Copy link
Member

Choose a reason for hiding this comment

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

This should be using scopeAttributes

Copy link
Member Author

Choose a reason for hiding this comment

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

Have updated it to scope #344

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.

None yet

3 participants