fix: Apply "version" tag only when the span service name matches the default service name by zacharycmontoya · Pull Request #157 · DataDog/dd-trace-cpp

Description

Apply version tag to a span only if its service name matches the default service name. This may be viewed as a breaking change since now some spans that are started with a new service name will not have the "version" tag set.

Motivation

This behavior conforms to our Config Consistency initiative

Additional Notes

As this may be breaking, we could put this new behavior behind a feature flag, but I'm inclined to say that this is a FIX rather than a FEATURE.

Jira ticket: APMAPI-517