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

Guard interfaces #1575

Merged
merged 3 commits into from
Feb 24, 2021
Merged

Guard interfaces #1575

merged 3 commits into from
Feb 24, 2021

Conversation

punya
Copy link
Member

@punya punya commented Feb 23, 2021

Prevent end-users from implementing some interfaces:

"otel/exporters/otlp/otlphttp".Option
"otel/exporters/stdout".Option
"otel/oteltest".Option
"otel/trace".TracerOption
"otel/trace".SpanOption
"otel/trace".EventOption
"otel/trace".LifeCycleOption
"otel/trace".InstrumentationOption
"otel/sdk/resource".Option
"otel/sdk/trace".ParentBasedSamplerOption
"otel/sdk/trace".ReadOnlySpan
"otel/sdk/trace".ReadWriteSpan

Resolves #1574.

@codecov
Copy link

codecov bot commented Feb 23, 2021

Codecov Report

Merging #1575 (6e740df) into main (85e696d) will decrease coverage by 0.3%.
The diff coverage is 11.4%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #1575     +/-   ##
=======================================
- Coverage   78.0%   77.6%   -0.4%     
=======================================
  Files        128     128             
  Lines       6606    6635     +29     
=======================================
  Hits        5153    5153             
- Misses      1206    1235     +29     
  Partials     247     247             
Impacted Files Coverage Δ
exporters/otlp/otlphttp/options.go 66.6% <0.0%> (-33.4%) ⬇️
exporters/stdout/config.go 53.8% <0.0%> (-16.2%) ⬇️
sdk/trace/sampling.go 93.7% <0.0%> (-6.3%) ⬇️
sdk/trace/span.go 90.6% <0.0%> (-0.5%) ⬇️
trace/config.go 61.1% <0.0%> (-14.8%) ⬇️
oteltest/config.go 91.8% <33.3%> (-2.6%) ⬇️
sdk/resource/config.go 87.5% <60.0%> (-3.9%) ⬇️

"otel/exporters/otlp/otlphttp".Option
"otel/exporters/stdout".Option
"otel/oteltest".Option
"otel/trace".TracerOption
"otel/trace".SpanOption
"otel/trace".EventOption
"otel/trace".LifeCycleOption
"otel/trace".InstrumentationOption
"otel/sdk/resource".Option
"otel/sdk/trace".ParentBasedSamplerOption
"otel/sdk/trace".ReadOnlySpan
"otel/sdk/trace".ReadWriteSpan
@punya punya marked this pull request as ready for review February 23, 2021 21:35
@MrAlias MrAlias merged commit 37688ef into open-telemetry:main Feb 24, 2021
@Aneurysm9 Aneurysm9 mentioned this pull request Mar 3, 2021
ldelossa pushed a commit to ldelossa/opentelemetry-go that referenced this pull request Mar 5, 2021
"otel/exporters/otlp/otlphttp".Option
"otel/exporters/stdout".Option
"otel/oteltest".Option
"otel/trace".TracerOption
"otel/trace".SpanOption
"otel/trace".EventOption
"otel/trace".LifeCycleOption
"otel/trace".InstrumentationOption
"otel/sdk/resource".Option
"otel/sdk/trace".ParentBasedSamplerOption
"otel/sdk/trace".ReadOnlySpan
"otel/sdk/trace".ReadWriteSpan

Co-authored-by: Tyler Yahn <[email protected]>
This was referenced Mar 7, 2021
This was referenced Mar 11, 2021
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Guard API interfaces that should not be directly implemented by end-users
4 participants