Skip to content

Add EntityRef and use it in Resource.#635

Merged
jsuereth merged 5 commits intoopen-telemetry:mainfrom
jsuereth:wip-entities-for-resource
Mar 28, 2025
Merged

Add EntityRef and use it in Resource.#635
jsuereth merged 5 commits intoopen-telemetry:mainfrom
jsuereth:wip-entities-for-resource

Conversation

@jsuereth
Copy link
Copy Markdown
Contributor

@jsuereth jsuereth commented Mar 6, 2025

As per OTEP 264 - This is the proposal for representing "Entity" in OTLP.

  • Adds a new EntityRef message where an Entity is an object of interest in observability.
    • Entity has a type (e.g. host, k8s.pod, service).
    • Entity has a set of identifying attributes (these contribute to signal identity)
    • Entity has a set of descriptive attirbutes (these are used to aide signal retreival/querying).
    • Entity can be defined and versioned (e.g. semantic conventions via schema_url).
  • Adds a new entity_refs field to Resource that allows distinguishing which key-value pairs in Resource come from which reported Entity.

Please read the OTEP for details and rationale behind this protocol design. High level this meant to be:

  • Sufficient to represent entities
  • Non-breaking for all OpenTelemetry users.

Prototypes using this protocol

@jsuereth jsuereth requested a review from a team March 6, 2025 17:20
@jsuereth jsuereth moved this to In Progress in Entities: Phase 1 Mar 6, 2025
Comment thread opentelemetry/proto/common/v1/common.proto
Comment thread opentelemetry/proto/common/v1/common.proto
Copy link
Copy Markdown
Contributor

@smith smith left a comment

Choose a reason for hiding this comment

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

Looks good; just a few suggestions for comment changes.

Comment thread opentelemetry/proto/common/v1/common.proto Outdated
Comment thread opentelemetry/proto/common/v1/common.proto Outdated
Comment thread opentelemetry/proto/resource/v1/resource.proto Outdated
Comment thread opentelemetry/proto/resource/v1/resource.proto
jsuereth and others added 3 commits March 18, 2025 12:17
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
@jsuereth jsuereth merged commit e4fd4f6 into open-telemetry:main Mar 28, 2025
15 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Entities: Phase 1 Mar 28, 2025
@jsuereth jsuereth deleted the wip-entities-for-resource branch March 28, 2025 17:13
jsuereth added a commit to open-telemetry/opentelemetry-specification that referenced this pull request Apr 10, 2025
Adds an initial cut at the Entity DataModel specification from OTEP 256.

## Changes

- Adds information to Resource readme.
- Creates an initial Resource DataModel with content from Entities SIG
discussions on purpose and usage or Resource.
- Creates an `entities` diretory for storing Entities DataModel.

See open-telemetry/opentelemetry-proto#635 for
related protocol change.

Prototypes:

- java: open-telemetry/opentelemetry-java#6855
- collector:
open-telemetry/opentelemetry-collector#11958
- go: open-telemetry/opentelemetry-go#5918

---------

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
Co-authored-by: Christophe Kamphaus <christophe.kamphaus@gmail.com>
dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jun 24, 2025
Add support for the new resource-entity reference API added to the proto as part of open-telemetry/opentelemetry-proto#635.

This required moving CopyTo implementation to the internal package for the structures that are used by other packages
dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jun 24, 2025
Add support for the new resource-entity reference API added to the proto as part of open-telemetry/opentelemetry-proto#635.

This required moving CopyTo implementation to the internal package for the structures that are used by other packages
dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jun 24, 2025
Add support for the new resource-entity reference API added to the proto as part of open-telemetry/opentelemetry-proto#635.

This required moving CopyTo implementation to the internal package for the structures that are used by other packages
dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jun 27, 2025
Add support for the new resource-entity reference API added to the proto as part of open-telemetry/opentelemetry-proto#635.

This required moving CopyTo implementation to the internal package for the structures that are used by other packages
dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jun 27, 2025
Add support for the new resource-entity reference API added to the proto as part of open-telemetry/opentelemetry-proto#635.

This required moving CopyTo implementation to the internal package for the structures that are used by other packages
dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jun 30, 2025
Add support for the new resource-entity reference API added to the proto as part of open-telemetry/opentelemetry-proto#635.

This required moving CopyTo implementation to the internal package for the structures that are used by other packages
dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jul 1, 2025
Add support for the new resource-entity reference API added to the proto as part of open-telemetry/opentelemetry-proto#635.

This required moving CopyTo implementation to the internal package for the structures that are used by other packages
dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jul 2, 2025
Add support for the new resource-entity reference API added to the proto as part of open-telemetry/opentelemetry-proto#635.

This required moving CopyTo implementation to the internal package for the structures that are used by other packages
github-merge-queue Bot pushed a commit to open-telemetry/opentelemetry-collector that referenced this pull request Jul 2, 2025
…13264)

Add support for the new resource-entity reference API added to the proto
as part of
open-telemetry/opentelemetry-proto#635.

The API is separated into the experimental xpdata module since the new
entity related protobuf definitions are in development

This is the first step towards adopting Entities in Collector which was
drafted in
#11958
github-merge-queue Bot pushed a commit to open-telemetry/opentelemetry-collector that referenced this pull request Jul 2, 2025
…13264)

Add support for the new resource-entity reference API added to the proto
as part of
open-telemetry/opentelemetry-proto#635.

The API is separated into the experimental xpdata module since the new
entity related protobuf definitions are in development

This is the first step towards adopting Entities in Collector which was
drafted in
#11958
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

8 participants