-
Notifications
You must be signed in to change notification settings - Fork 13
Add resource attributes #298
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
Add resource attributes #298
Conversation
Add abstract client tests (hypertrace#246)
Pull hypertrace main
publishing filter-api (hypertrace#252)
pull main
pull main
...xtensions/src/main/java/org/hypertrace/agent/otel/extensions/HypertraceResourceProvider.java
Show resolved
Hide resolved
...xtensions/src/main/java/org/hypertrace/agent/otel/extensions/HypertraceResourceProvider.java
Outdated
Show resolved
Hide resolved
} catch (ClassNotFoundException e) { | ||
log.warn("Could not load HypertraceAgent class"); | ||
} | ||
builder.put(ResourceAttributes.TELEMETRY_SDK_VERSION, agentVersion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this correct? The SDK version does not match the agent version
log.warn("Could not load HypertraceAgent class"); | ||
} | ||
builder.put(ResourceAttributes.TELEMETRY_SDK_VERSION, agentVersion); | ||
builder.put(ResourceAttributes.TELEMETRY_AUTO_VERSION, agentVersion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you point me to the spec that defines what version should be used here?
builder.put(ResourceAttributes.TELEMETRY_SDK_VERSION, agentVersion); | ||
builder.put(ResourceAttributes.TELEMETRY_AUTO_VERSION, agentVersion); | ||
builder.put(AttributeKey.stringKey(HYPERTRACE_MODULE_NAME), "java"); | ||
builder.put(AttributeKey.stringKey(HYPERTRACE_MODULE_VERSION), agentVersion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davexroth related to the wiki doc - it seems there is quite large redundancy in the version attributes.
Could we use only a single one if the values are repeated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replied to your comment on the wiki.
Update telemetry resource attributes and add hypertrace attributes.