Fix NameError: uninitialized constant Datadog::Tracing::Contrib::Ext::Metadata::TAG_BASE_SERVICE #5830
Conversation
This reverts commit b806387.
NameError: uninitialized constant Datadog::Tracing::Contrib::Ext::Metadata::TAG_BASE_SERVICE
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 29c95c4 | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-05-28 11:26:25 Comparing candidate commit 29c95c4 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 46 metrics, 1 unstable metrics.
|
What does this PR do?
Reverts b806387, restoring the
Datadog::Tracing::Contrib::Ext::Metadata::TAG_BASE_SERVICEconstant as an alias toDatadog::Tracing::Metadata::Ext::TAG_BASE_SERVICE.Motivation:
A customer reported
NameError: uninitialized constant Datadog::Tracing::Contrib::Ext::Metadata::TAG_BASE_SERVICEafter upgrading to v2.34.0. The constant was removed as part of internal cleanup after the prior commit moved base_service tagging into a centralized before-finish hook, but it was reachable from outside the gem and at least one customer was relying on it.Change log entry
Yes. Restore
Datadog::Tracing::Contrib::Ext::Metadata::TAG_BASE_SERVICEconstant that was unintentionally removed in v2.34.0.Additional Notes:
The alias target
Datadog::Tracing::Metadata::Ext::TAG_BASE_SERVICEis unchanged, so this is a pure restoration with no internal callsite impact.How to test the change?