Skip to content

Conversation

@jaydeluca
Copy link
Member

Related to #13468

Now that we can intercept metrics, I went through and found all the instrumentation modules that emit metrics by default and enabled the gathering on them. There are still many modules that emit metrics behind configuration flags, and I will followup with a strategy for how we can handle the case for telemetry gated by configuration options, and then enable the metric gathering on those remaining modules.

Also added more descriptions and configuration documentation, and refactored the collect script.

@jaydeluca jaydeluca requested a review from a team as a code owner May 31, 2025 12:45
Copy link
Member

@zeitlinger zeitlinger left a comment

Choose a reason for hiding this comment

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

# Runs selected Gradle test tasks to regenerate *.telemetry output for
# individual OpenTelemetry Java agent instrumentations.

set -euo pipefail
Copy link
Member

Choose a reason for hiding this comment

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

maybe this is getting too complicated for a shell script. maybe use python?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is just a helper script and the need for it should be temporary, but i agree it is getting a bit complex for bash (which is why I've included so many comments 😅).

I was hesitant to introduce python to this repo, but im open to rewriting this to make it easier to grok

Copy link
Member

Choose a reason for hiding this comment

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

I was hesitant to introduce python to this repo

it's ok with me (if you want to)

@@ -0,0 +1,4 @@
description: >
Couchbase instrumentation is owned upstream. This Couchbase instrumentation manipulates the
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't need to provide the details on how exactly the instrumentation works as it requires the reader to know how tracing works in couchbase to make sense of it. Maybe we could be a bit more vague and just say we automatically enable the instrumentation that is provided by the couchbase.

Couchbase instrumentation is owned by the Couchbase project. This instrumentation automatically configures the instrumentation provided by the Couchbase.

@@ -0,0 +1,6 @@
description: This instrumentation provides support for Apache Camel and generates spans for each route execution.
Copy link
Contributor

Choose a reason for hiding this comment

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

should we also mention that this instrumentation is only for 2.x and that in 3.x instrumentation is built into camel (I think our instrumentation is based on instrumentation for a later version).

Copy link
Member Author

Choose a reason for hiding this comment

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

yes i think that is good idea

@jaydeluca jaydeluca mentioned this pull request Jun 6, 2025
24 tasks
@laurit laurit merged commit 8a7fbc5 into open-telemetry:main Jun 10, 2025
88 checks passed
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.

4 participants