Skip to content

Move Otel Collector guidelines from to opentelemetry-guidelines.md#318

Open
tigrannajaryan wants to merge 1 commit intoopen-telemetry:mainfrom
tigrannajaryan:tigran/otel-guidelines
Open

Move Otel Collector guidelines from to opentelemetry-guidelines.md#318
tigrannajaryan wants to merge 1 commit intoopen-telemetry:mainfrom
tigrannajaryan:tigran/otel-guidelines

Conversation

@tigrannajaryan
Copy link
Copy Markdown
Member

Continuation of #312

This brings Otel Collector guidelines from specification.md to the opentelemetry-guidelines.md where we want all Otel-related guidelines to be.

@tigrannajaryan tigrannajaryan requested a review from a team as a code owner April 23, 2026 18:25
@tigrannajaryan
Copy link
Copy Markdown
Member Author

@open-telemetry/collector-approvers please review.

Comment thread specification.md
Comment on lines +1219 to 1222
- os.\* to describe where the Agent runs.
- host.\* to describe the host the Agent runs on.
- cloud.\* to describe the cloud where the host is located.
- any other relevant Resource attributes that describe this Agent and the
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I kept these as generic recommendations. There is also slightly specific requirements for the Collector in opentelemetry-guidelines.md.

I am not sure how to best differentiate the too, but I felt like some generic recommendations are still useful to have in this file.

Comment thread opentelemetry-guidelines.md Outdated
Comment on lines +14 to +21
- service.name should be set to the same value that the Agent uses in its own telemetry.
- service.namespace if it is used in the environment where the Agent runs.
- service.version should be set to version number of the Agent build.
- service.instance.id should be set. It may be set equal to the Agent's
instance uid (equal to ServerToAgent.instance_uid field) or any other value
that uniquely identifies the Agent in combination with other attributes.
- any other attributes that are necessary for uniquely identifying the Agent's
own telemetry.
Copy link
Copy Markdown

@jade-guiton-dd jade-guiton-dd Apr 24, 2026

Choose a reason for hiding this comment

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

I suggest we copy something similar to "The combination of identifying attributes SHOULD be sufficient to uniquely identify the Agent's own telemetry in the destination system to which the Agent sends its own telemetry" in this document as well.

There is already something similar for service.name, but I'm especially worried about service.instance.id, which as-is is very easy to interpret as "put in whatever random instance UID the OpAMP extension decided on, regardless of the Collector's service.instance.id".

Honestly, I'd argue the wording for SDKs is clearer and stronger: "These identifying attributes MUST match the values that the agent uses in the Resource of its own telemetry." Maybe it can be reused for the Collector as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added "These values SHOULD match the values that the Collector uses in the Resource of its
own telemetry.", which mirrors the spec wording.

Comment thread opentelemetry-guidelines.md Outdated
Comment thread opentelemetry-guidelines.md Outdated
@tigrannajaryan tigrannajaryan force-pushed the tigran/otel-guidelines branch from d23746b to d30e287 Compare April 28, 2026 14:53
Continuation of open-telemetry#312

This brings Otel Collector guidelines from specification.md
to the opentelemetry-guidelines.md where we want all Otel-related
guidelines to be.
@tigrannajaryan tigrannajaryan force-pushed the tigran/otel-guidelines branch from d30e287 to d6eb803 Compare April 28, 2026 14:55
Comment on lines +20 to +21
- any other attributes that are necessary for uniquely identifying the Agent's
own telemetry.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we still need this given #312?


- `service.name` should be set to the same value that the Agent uses in its own telemetry.
- `service.namespace` if it is used in the environment where the Agent runs.
- `service.version` should be set to version number of the Agent build.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This also goes against #312... Shouldn't this be non-identifying attribute?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I am not sure I follow. Why is this against #312?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

service.version isn't listed in the set of required identifying attributes. Why do we recommend to set it there for the collector?

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.

5 participants