Skip to content

Extra HTTP Headers for Tracking Data Producer

Choose a tag to compare

@dongxiaoman dongxiaoman released this 18 Apr 06:05
· 28 commits to master since this release
d7106ec

Added extra headers for data producer. We hope to capture the below 3 types of information:

  1. Service Name
  2. Client Version (language and version number)
  3. Instance Name (for a service with multiple running instances, which instance it is coming from

By default they will be fetched automatically, no extra work is needed.
The Service Name by default is retrieved from environment variable UDEPLOY_APP_ID.
The Instance Name by default is retrieved from environment variable UDEPLOY_DEPLOYMENT_NAME
The client version is generated by library.

The headers and values are also customizable. Below are the options field to customize them:

Category Value HTTP Header Name Retrieve from Env Var
Service Name options.serviceName options.serviceNameHeader options.serviceNameEnv
Instance Name options.instanceName options.instanceNameHeader options.instanceNameEnv
Client Version (N.A.) options.clientVersionHeader (N.A.)