DataDog / kong-plugin-ddtrace

Datadog APM Plugin for Kong Gateway
Apache License 2.0
15 stars 7 forks source link

feat: add `DD_TRACE_HEADER_TAGS` #28

Closed dmehala closed 5 months ago

dmehala commented 5 months ago

Description

It is now possible to collect and report specific HTTP Header as span tags. It works for request and response HTTP Headers.

Resolves #3 #21

How to test

  1. Configure the plugin to report a specific HTTP Header
    --data 'config.header_tags[1].header=foo'
  2. Make an HTTP request
    curl -H "Foo: bar" --header 'Host: example.com' http://localhost:8000/headers