Skip to content

[jaeger exporter] Add env var for agent host #536

@naseemkullah

Description

@naseemkullah

Is your feature request related to a problem? Please describe.
To point to an agent daemonset pod running on local node, the value has to be set in the kubernetes spec as v1:status.hostIP (this cannot be set in code, not easily at least) , it would be very convenient to simply add a JAEGER_AGENT_HOST env var that the exporter looks for without it being explicitly set in the exporter config, and if it is not set, default to localhost of course. please see `open-telemetry/opentelemetry-specification#172 (comment)

Describe the solution you'd like
JAEGER_AGENT_HOST or JAEGER_HOST whose value will be used as the host in the exporter config, if set.

Describe alternatives you've considered
adding process.env.JAEGER_AGENT_HOST in all projects that use open telemetry with jaeger exporter.

Additional context

status.hostIP - the node’s IP, available since v1.7.0-alpha.1

https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#capabilities-of-the-downward-api

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions