Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename global SetTraceProvider and TraceProvider #1102

Merged
merged 4 commits into from
Aug 31, 2020

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Aug 26, 2020

This naming was in error it should be TracerProvider.

Resolves #1101

@MrAlias MrAlias added pkg:API Related to an API package area:trace Part of OpenTelemetry tracing release:required-for-ga labels Aug 26, 2020
@MrAlias MrAlias self-assigned this Aug 26, 2020
@codecov
Copy link

codecov bot commented Aug 26, 2020

Codecov Report

Merging #1102 into master will increase coverage by 0.0%.
The diff coverage is 83.3%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1102   +/-   ##
======================================
  Coverage    77.0%   77.0%           
======================================
  Files         132     132           
  Lines        6994    6994           
======================================
+ Hits         5389    5390    +1     
+ Misses       1361    1359    -2     
- Partials      244     245    +1     
Impacted Files Coverage Δ
exporters/stdout/exporter.go 25.0% <0.0%> (ø)
api/global/trace.go 66.6% <80.0%> (ø)
api/global/internal/state.go 83.6% <100.0%> (ø)
api/global/internal/trace.go 91.3% <100.0%> (ø)
exporters/trace/jaeger/jaeger.go 84.9% <100.0%> (ø)
exporters/trace/zipkin/zipkin.go 68.0% <100.0%> (ø)
sdk/trace/batch_span_processor.go 81.4% <0.0%> (+1.0%) ⬆️

MrAlias added a commit to MrAlias/opentelemetry-go that referenced this pull request Aug 28, 2020
@MrAlias MrAlias mentioned this pull request Aug 28, 2020
7 tasks
Copy link
Contributor

@evantorrie evantorrie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. Just the one question of whether to change the name of the test struct in order to reinforce that these are "tracer" providers, not "trace" providers.

api/global/trace_test.go Outdated Show resolved Hide resolved
@MrAlias MrAlias merged commit 1ab708e into open-telemetry:master Aug 31, 2020
@MrAlias MrAlias deleted the rename-global-tracerprovider branch August 31, 2020 17:02
evantorrie pushed a commit to evantorrie/opentelemetry-go that referenced this pull request Sep 10, 2020
* Rename global {Set,}TraceProvider

Resolves open-telemetry#1101

* Rename unexported and testing vars
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:trace Part of OpenTelemetry tracing pkg:API Related to an API package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename global TraceProvider to TracerProvider
4 participants