kubectl
.
service.name
attribute is a fundamental resource attribute in OpenTelemetry.service.name
will be set to the container name.
If you want to override the default value, you can also set the service.name
attribute by adding the otelServiceName
attribute to an exiting Source, or by creating a Source
with that attribute:
otelServiceName
attribute. If a namespace is instrumented, and a Source for a specific workload is not present, a specific source for that workload will need to be created including the desired otelServiceName
.
service.name
field.
To undo the override, simply erase the value from the service.name
field.
service.name
using the Odigos CLI, use the odigos sources update
command (see documentation).
If you know the name of the Source object to update, pass that to odigos sources update
along with the --otel-service
flag:
odigos sources update
to identify the Source by workload:
service.name
attribute by updating the corresponding Source.
For example, to set the service.name
attribute in telemetry for an existing source:
To get the relevant Source for your workload you can either use:
kubectl patch
command. For
example: