Skip to content

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

Merged
merged 13 commits into from
Apr 7, 2021

Conversation

shashank11p
Copy link
Contributor

Update telemetry resource attributes and add hypertrace attributes.

} catch (ClassNotFoundException e) {
log.warn("Could not load HypertraceAgent class");
}
builder.put(ResourceAttributes.TELEMETRY_SDK_VERSION, agentVersion);
Copy link
Member

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);
Copy link
Member

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);
Copy link
Member

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?

Copy link
Contributor

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.

@shashank11p shashank11p requested a review from pavolloffay April 7, 2021 06:12
@shashank11p shashank11p merged commit 5e4544d into hypertrace:main Apr 7, 2021
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.

3 participants