Skip to content

feat: add service.instance.cost_center attribute (#3754)#3756

Open
urjitasharma-11 wants to merge 1 commit into
open-telemetry:mainfrom
urjitasharma-11:service.instance.cost_center
Open

feat: add service.instance.cost_center attribute (#3754)#3756
urjitasharma-11 wants to merge 1 commit into
open-telemetry:mainfrom
urjitasharma-11:service.instance.cost_center

Conversation

@urjitasharma-11
Copy link
Copy Markdown

Fixes #3754

This PR introduces the service.instance.cost_center attribute to the semantic conventions registry.

Context

Following discussions and alignment within the Service and Deployment SIG, we have moved the financial attribution metadata from the logical service level to the instance level. This decision was made because costs are primarily incurred by runtime entities, and service.instance represents the actual compute unit where resource consumption happens.

Changes

  • model/service/registry.yaml: Added the service.instance.cost_center attribute definition.
  • model/service/entities.yaml: Added a descriptive reference for the attribute under the service.instance entity.
  • Documentation Updates: Updated docs/registry/attributes/service.md, docs/registry/entities/service.md, and docs/resource/service.md to reflect the new attribute.
  • Changelog: Added an entry for the new attribute.

This proposal supersedes #3397 and addresses the feedback regarding granular cost attribution in multi-region or multi-tenant deployments.

@linux-foundation-easycla
Copy link
Copy Markdown

CLA Not Signed

Comment on lines +47 to +55
- id: entity.service.instance
type: entity
name: service.instance
attributes:
- ref: service.instance.id
requirement_level: required
- ref: service.instance.cost_center
requirement_level: recommended
role: descriptive No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add the new attribute to the existing entity.

consumers MAY use this attribute to optimize telemetry collection
or improve user experience.
examples: ["critical", "high", "medium", "low"]
- id: service.instance.cost_center
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- id: service.instance.cost_center
- id: service.instance.cost_center.id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Proposal: Add service.instance.cost_center attribute

2 participants