mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-30 21:20:04 +02:00
Fixed typo for default service name in Jaeger Exporter (#1797)
* Fix typo in jaeger exporter * Update changelog * Add PR number to changelog * Move entry in changelog to Fixed Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
parent
95fd8f5092
commit
99c477feb8
@ -46,6 +46,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||
- The Jaeger exporter now correctly records Span event's names using the `"event"` key for a tag.
|
||||
Additionally, this tag is overridden, as specified in the OTel specification, if the event contains an attribute with that key. (#1768)
|
||||
- Zipkin Exporter: Ensure mapping between OTel and Zipkin span data complies with the specification. (#1688)
|
||||
- Fixed typo for default service name in Jaeger Exporter. (#1797)
|
||||
|
||||
### Changed
|
||||
|
||||
|
@ -490,7 +490,7 @@ func process(res *resource.Resource, defaultServiceName string) *gen.Process {
|
||||
// If no service.name is contained in a Span's Resource,
|
||||
// that field MUST be populated from the default Resource.
|
||||
if serviceName.Value.AsString() == "" {
|
||||
serviceName = semconv.ServiceVersionKey.String(defaultServiceName)
|
||||
serviceName = semconv.ServiceNameKey.String(defaultServiceName)
|
||||
}
|
||||
process.ServiceName = serviceName.Value.AsString()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user