Skip to content

Commit

Permalink
Update comment around setting of ParentVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-normand committed May 26, 2022
1 parent ce29326 commit 07f57dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddtrace/tracer/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ func (t *tracer) StartSpan(operationName string, options ...ddtrace.StartSpanOpt
if t.config.universalVersion || (!t.config.universalVersion && span.Service == t.config.serviceName) {
span.setMeta(ext.Version, t.config.version)
}
// If the span has a different service than the global service, attribute and set the config version as the
// parent version
// For SQL spans which have a different database-inferred service name, set the service version as
// the parent version to avoid confusion with the database service's version
if span.Service != t.config.serviceName {
span.setMeta(ext.ParentVersion, t.config.version)
}
Expand Down

0 comments on commit 07f57dc

Please sign in to comment.