Add Instrumentation Supplementary Guidelines - #5191
cijothomas wants to merge 7 commits into
Conversation
c7585e8 to
2306300
Compare
|
I reviewed the content, and think it is correct and useful. My main question is still whether this is the right place for it to live. I see this kind of document as user-facing, so I had imagined that it would be integrated into opentelemetry.io in a more discoverable way. But i'm open to other opinions. |
The main audience is instrumentation library authors. We do have supplementary guidelines for sdk authors, sdk extension point authors etc. So not a bad idea to keep it in spec repo. (And have a link from the docs website https://opentelemetry.io/docs/concepts/instrumentation/libraries/ ) |
|
See my comment on the issue (#5148 (comment)): I am a big fan of having instrumentation guidelines, but we should decide if they sit in the spec, or if people would find them more easily in the docs. |
Would open-telemetry/opentelemetry.io#10815 be sufficient for the discoverability part? |
|
My preference is still to have the source of truth be the stand-alone, user-facing documentation on opentelemetry.io. The spec is the right place for content that is primarily for language implementation authors. This seems like content that is primarily for end users / instrumentation authors. I would expect the main, authoritative content to be on opentelemetry.io, and I would expect our supplementary guidelines to reference that, and add any details that are specific to instrumentation for sdks. |
Pull request dashboard statusWaiting on the author · refreshed 2026-10-02 18:23 UTC Respond to 6 review items (e.g. link a commit, explain why not, ask a follow-up): Status above doesn't look right?
|
This comment has been minimized.
This comment has been minimized.
The audience is library owners who instrument natively or instrumentation library authors, not just end users. Spec's existing supplementary guidelines already serve them. So, this PR is consistent with what the spec uses supplementary guidelines already for. I don't see any discoverability issue (open-telemetry/opentelemetry.io#10815 can help). |
|
We actually have a top level |
I only see existing supplementary guidelines for each signal directory (logs/metrics) separately. |
Signed-off-by: cijothomas <cijo.thomas@gmail.com>
…ementary-guidelines Signed-off-by: cijothomas <cijo.thomas@gmail.com> # Conflicts: # CHANGELOG.md
|
This PR was marked stale. It will be closed in 14 days without additional activity. |
|
@dashpole Can you re-review and check my comment in #5191 (comment)? |
|
I agree with @cijothomas's suggestion that this is specification-adjacent material and not user-facing material. I would approve open-telemetry/opentelemetry.io#10815 recommend link text like "for a more formal treatment". |
|
To address @dashpole's concerns, I think opentelemetry.io could use code-ownership to ensure specification owners are required to approve changes in e.g., content/en/docs/concepts/instrumentation/libraries.md. |
Agreed, I would in general like to have spec-approvers/TC to code-own the whole "concepts" section as it is in big parts a "simplified" version of the spec. |
|
Hi @cijothomas — just a friendly reminder that this pull request is waiting on you. The dashboard status comment has the open items and is kept current.
|
| The specification already requires instrumentation to depend only on the | ||
| OpenTelemetry API, not the SDK (see [Overview](overview.md#sdk)). |
There was a problem hiding this comment.
nit
| The specification already requires instrumentation to depend only on the | |
| OpenTelemetry API, not the SDK (see [Overview](overview.md#sdk)). | |
| The specification already requires instrumentation to depend on the | |
| OpenTelemetry API, and not the SDK (see [Overview](overview.md#sdk)). |
I am not sure if "only" would not be misleading
| * When the instrumentation targets a particular version of the OpenTelemetry | ||
| Semantic Conventions, it should set the scope `schema_url` to the | ||
| corresponding [Telemetry Schema](schemas/README.md) URL. | ||
| * The scope name and version are part of the emitted telemetry's identity. |
There was a problem hiding this comment.
Isn't the schema_url also part of the identity?
| ## Testing | ||
|
|
||
| Instrumentation authors are encouraged to test the telemetry their | ||
| instrumentation emits using OpenTelemetry's in-memory exporter, asserting on the |
There was a problem hiding this comment.
| instrumentation emits using OpenTelemetry's in-memory exporter, asserting on the | |
| instrumentation emits e.g. using OpenTelemetry's in-memory exporter, asserting on the |
There are other ways. E.g one can use https://pkg.go.dev/go.opentelemetry.io/otel/log/logtest to not even depend on the SDK in the tests.
Fixes #5148
Companion PR for the website to ease discoverability: open-telemetry/opentelemetry.io#10815