Skip to content

Conversation

@patschl
Copy link

@patschl patschl commented Dec 20, 2025

If the client already specified a queryId attribute, it should be extracted and added as an attribute.

@patschl patschl requested a review from a team as a code owner December 20, 2025 13:29
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 20, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: patschl / name: Patrick (45563b9)

@patschl patschl marked this pull request as draft December 21, 2025 12:24
Copy link
Contributor

@laurit laurit left a comment

Choose a reason for hiding this comment

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

Usually by default we emit only telemetry that is defined in semantic conventions. Attributes that are not in semantic conventions are added only when requested by user by setting a flag like otel.instrumentation.kafka.experimental-span-attributes see

if (DeclarativeConfigUtil.getInstrumentationConfig(GlobalOpenTelemetry.get(), "pulsar")
.getBoolean("experimental_span_attributes/development", false)) {
builder.addAttributesExtractor(ExperimentalProducerAttributesExtractor.INSTANCE);
}
for an example

@patschl
Copy link
Author

patschl commented Jan 7, 2026

@laurit Thanks for the feedback.

I spoke to the maintainer of the clickhouse-java client, this PR might won't work after all.
Due to an upcoming change the queryId may be set after the instrumented method is invoked. If thats the case this has to be changed again anyway.

I will keep this in mind though.
Should I close this PR for now and open a new one once it's clear what needs to be done, or is it fine to leave it as a draft?

@laurit
Copy link
Contributor

laurit commented Jan 7, 2026

Should I close this PR for now and open a new one once it's clear what needs to be done, or is it fine to leave it as a draft?

I think you can close and reopen when you are ready. If something isn't available at the start of the instrumented method then you could also consider filling it at the end of the method.

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