You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the service.name value is set with the value of the well-known app.kubernetes.io/component label.
app.kubernetes.io/component def: The component within the application architecture. Given example: app.kubernetes.io/component: "database" app.kubernetes.io/name def: The name of the application. A non-unique name. https://kubernetes.io/docs/reference/labels-annotations-taints/
service.namesemconv definition: Logical name of the service. MUST be the same for all instances of horizontally scaled services.
If I have multiple otel-demo deployments and I want to scale a specific's deployment services, I would be scaling based on the my-otel-demo-cartservice (app.kubernetes.io/name) value, not on the component's value as it would mean scaling all the cluster deployments. The component label seems a very high level attributes to base the service.name value on.
What do you think if we set the service.name value on the app.kubernetes.io/name label instead?
rogercoll
changed the title
[demo] Set app.kubernetes.io/name based on the service.name value
[demo] Set service.name based on the app.kubernetes.io/name value
Oct 16, 2024
At the moment, the
service.name
value is set with the value of the well-knownapp.kubernetes.io/component
label.app.kubernetes.io/component
def: The component within the application architecture. Given example:app.kubernetes.io/component: "database"
app.kubernetes.io/name
def: The name of the application. A non-unique name.https://kubernetes.io/docs/reference/labels-annotations-taints/
Sample labels:
service.name
semconv definition: Logical name of the service. MUST be the same for all instances of horizontally scaled services.If I have multiple otel-demo deployments and I want to scale a specific's deployment services, I would be scaling based on the
my-otel-demo-cartservice
(app.kubernetes.io/name) value, not on the component's value as it would mean scaling all the cluster deployments. The component label seems a very high level attributes to base theservice.name
value on.What do you think if we set the
service.name
value on theapp.kubernetes.io/name
label instead?On going semconv proposal: open-telemetry/semantic-conventions#236
The text was updated successfully, but these errors were encountered: