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

Remove MockSpan and MockTracer #1306

Merged
merged 3 commits into from
Nov 5, 2020

Conversation

matej-g
Copy link
Contributor

@matej-g matej-g commented Nov 4, 2020

Presently, MockSpan and MockTracer structs live in the oteltest package besides Span and Tracer structs. However, both pairs represent structs which are functionally similar. This is redundant. It is suggested to merge each pair and retain only oteltest.Span and oteltest.Tracer.

Resloves #1129

@codecov
Copy link

codecov bot commented Nov 4, 2020

Codecov Report

Merging #1306 into master will increase coverage by 0.1%.
The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1306     +/-   ##
========================================
+ Coverage    77.1%   77.2%   +0.1%     
========================================
  Files         123     121      -2     
  Lines        5985    5954     -31     
========================================
- Hits         4616    4600     -16     
+ Misses       1121    1111     -10     
+ Partials      248     243      -5     
Impacted Files Coverage Δ
oteltest/provider.go 100.0% <100.0%> (ø)
internal/trace/parent/parent.go 0.0% <0.0%> (-21.1%) ⬇️

Copy link
Member

@XSAM XSAM left a comment

Choose a reason for hiding this comment

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

👍

@MrAlias MrAlias merged commit 9ac3a08 into open-telemetry:master Nov 5, 2020
@MrAlias MrAlias linked an issue Nov 5, 2020 that may be closed by this pull request
@MrAlias MrAlias mentioned this pull request Nov 20, 2020
AzfaarQureshi pushed a commit to open-o11y/opentelemetry-go that referenced this pull request Dec 3, 2020
* Remove MockSpan and MockTracer

* Update CHANGELOG

Co-authored-by: Tyler Yahn <codingalias@gmail.com>
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.

Find a way to avoid both having tracetest.MockSpan and tracetest.Span
3 participants