Skip to content

Remove MockSpan and MockTracer#1306

Merged
MrAlias merged 3 commits intoopen-telemetry:masterfrom
matej-g:remove-mockspan-mocktracer
Nov 5, 2020
Merged

Remove MockSpan and MockTracer#1306
MrAlias merged 3 commits intoopen-telemetry:masterfrom
matej-g:remove-mockspan-mocktracer

Conversation

@matej-g
Copy link
Copy Markdown
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
Copy Markdown

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%) ⬇️

Comment thread propagators/trace_context_test.go
Copy link
Copy Markdown
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>
@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.

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

4 participants