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

[exporter/instana] Simplify pushConvertedTraces tests #13851

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Sep 2, 2022

Just removing some redundant code. TestPushConvertedDefaultTraces and TestPushConvertedSimpleTraces are equivalent except for that one passes a trace with attributes to pushConvertedTraces, another passes a trace with SpanID/TraceID. It doesn't seem there is a reason to make that distinction. This change combine the tests into one passing a trace with both attributes and SpanID/TraceID to pushConvertedTraces.

@dmitryax dmitryax requested a review from a team September 2, 2022 21:08
@dmitryax dmitryax added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 2, 2022
@dmitryax dmitryax changed the title [exporter/instana] Simplify tests [exporter/instana] Simplify pushConvertedTraces tests Sep 2, 2022
There are a lot of redundant code. `TestPushConvertedDefaultTraces` and `TestPushConvertedSimpleTraces` are equivalent except for that one passes a trace with attributes  to `pushConvertedTraces`, another passes a trace with SpanID/TraceID.  It doesn't seem there is a reason to make that distinction. This change combine the tests into one passing a trace with both attributes and SpanID/TraceID to `pushConvertedTraces`.
@dmitryax dmitryax merged commit 7ab198f into open-telemetry:main Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants