solo-io / gloo

The Feature-rich, Kubernetes-native, Next-Generation API Gateway Built on Envoy
https://docs.solo.io/
Apache License 2.0
4.09k stars 441 forks source link

Add ability to set "service.name" when the telemetry is created from within the Gloo gateway proxy #10196

Open htech7x opened 2 weeks ago

htech7x commented 2 weeks ago

Gloo Edge Product

Enterprise

Gloo Edge Version

1.17.x

Is your feature request related to a problem? Please describe.

Currently is no way to set the "service.name" when telemetry is created from within the Gloo gateway proxy

One way to change "service.name" is using OTel attributes in the "otel-collector-conf" config map:

...
apiVersion: v1
data:
  otel-collector-config: |
...
  processors:
    resource/update-gloo-gateway-service-name:
      attributes:
        - key: "service.name"
           value: "new-name"
           action: update
...

But in case if OTel collector is not used "service.name" can't be changed

It would be nice to be able to specify "service.name" from within the Gloo gateway proxy.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional Context

No response

soloio-bot commented 2 weeks ago

Zendesk ticket #4565 has been linked to this issue.

ashishb-solo commented 2 weeks ago

Related: https://github.com/solo-io/gloo/issues/9848

Basically it would be a similar approach, but setting span attributes instead of just the name