Other packages, gem and the heroku buildpacks are using DD_TAGS with space separated format.
Checking TagSerializer and seems it only expects to have comma separated tags in DD_TAGS which prevents from correctly loading tags from environment variable.
|
def dd_tags(env = ENV) |
|
return {} unless dd_tags = env['DD_TAGS'] |
|
|
|
to_tags_hash(dd_tags.split(',')) |
|
end |
And this only runs in StatsD initialization, so it can be tricky to patch this section since needs to be patched before initialization
Other packages, gem and the heroku buildpacks are using
DD_TAGSwith space separated format.Checking
TagSerializerand seems it only expects to have comma separated tags inDD_TAGSwhich prevents from correctly loading tags from environment variable.dogstatsd-ruby/lib/datadog/statsd/serialization/tag_serializer.rb
Lines 81 to 85 in bf701af
And this only runs in StatsD initialization, so it can be tricky to patch this section since needs to be patched before initialization