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

Update OTLP to 0.6.0 and use the new Span Status code #2031

Conversation

tigrannajaryan
Copy link
Member

@tigrannajaryan tigrannajaryan commented Oct 29, 2020

Contributes to #1841

  • Implemented the backward compatibility logic for sending and receiving
    side for DeprecatedCode and Code fields according to OTLP spec.

  • Had to modify pdata generator to allow generating fields without setters.
    This is needed because the Status code field needs a custom setter logic
    that implements the DeprecatedCode vs Code handling.

  • Added tests that verify OTLP receiver behavior for Status Code/DeprecatedCode.

  • Added tests that verify sending/setting behavior for Status Code/DeprecatedCode
    for any component that uses pdata.Traces Status.SetCode().

  • Modified all non-OTLP trace receivers and exporters (Jaeger, Zipkin, OpenCensus) to use
    the new Status code.

  • Modified correctness tests to use the new status Code instead of DeprecatedCode.

@codecov
Copy link

codecov bot commented Oct 29, 2020

Codecov Report

Merging #2031 into master will increase coverage by 0.01%.
The diff coverage is 97.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2031      +/-   ##
==========================================
+ Coverage   92.03%   92.05%   +0.01%     
==========================================
  Files         278      278              
  Lines       16755    16799      +44     
==========================================
+ Hits        15421    15464      +43     
- Misses        916      917       +1     
  Partials      418      418              
Impacted Files Coverage Δ
internal/goldendataset/span_generator.go 98.29% <50.00%> (-0.57%) ⬇️
consumer/pdata/trace.go 97.56% <85.71%> (-2.44%) ⬇️
consumer/pdata/generated_trace.go 100.00% <100.00%> (ø)
internal/data/testdata/trace.go 100.00% <100.00%> (ø)
receiver/otlpreceiver/trace/otlp.go 100.00% <100.00%> (ø)
translator/internaldata/oc_to_traces.go 86.55% <100.00%> (+0.92%) ⬆️
translator/internaldata/traces_to_oc.go 87.87% <100.00%> (+0.84%) ⬆️
translator/trace/jaeger/jaegerproto_to_traces.go 91.00% <100.00%> (ø)
translator/trace/protospan_translation.go 92.05% <100.00%> (+0.16%) ⬆️
translator/internaldata/resource_to_oc.go 91.78% <0.00%> (+2.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77c4d29...e5e8508. Read the comment docs.

@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/span-status branch 3 times, most recently from e7c76fd to 9976229 Compare October 30, 2020 21:22
@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/span-status branch 9 times, most recently from 75f070a to 05826e5 Compare November 3, 2020 16:22
@tigrannajaryan tigrannajaryan marked this pull request as ready for review November 3, 2020 16:23
@tigrannajaryan tigrannajaryan requested a review from a team November 3, 2020 16:23
consumer/pdata/trace.go Outdated Show resolved Hide resolved
Contributes to open-telemetry#1841

- Implemented the backward compatibility logic for sending and receiving
  side for DeprecatedCode and Code fields according to OTLP spec.

- Had to modify pdata generator to allow generating fields without setters.
  This is needed because the Status code field needs a custom setter logic
  that implements the DeprecatedCode vs Code handling.

- Added tests that verify OTLP receiver behavior for Status Code/DeprecatedCode.

- Added tests that verify sending/setting behavior for Status Code/DeprecatedCode
  for any component that uses pdata.Traces Status.SetCode().

- Modified all non-OTLP trace receivers and exporters (Jaeger, Zipkin, OpenCensus) to use
  the new Status code.

- Modified correctness tests to use the new status Code instead of DeprecatedCode.
@tigrannajaryan tigrannajaryan self-assigned this Nov 3, 2020
@tigrannajaryan tigrannajaryan merged commit de104da into open-telemetry:master Nov 3, 2020
@tigrannajaryan tigrannajaryan deleted the feature/tigran/span-status branch November 3, 2020 22:28
tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector-contrib that referenced this pull request Nov 4, 2020
Resolves: open-telemetry/opentelemetry-collector#1841

This uses the new Span Status Code/DeprecatedCode from core repo.

Changes to Span Status are described in more details in this core PR:
open-telemetry/opentelemetry-collector#2031
tigrannajaryan added a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Nov 5, 2020
Resolves: open-telemetry/opentelemetry-collector#1841

This uses the new Span Status Code/DeprecatedCode from core repo.

Changes to Span Status are described in more details in this core PR:
open-telemetry/opentelemetry-collector#2031
@ndajr
Copy link

ndajr commented Nov 17, 2020

This may have introduced a bug on opentelemetry-go as linked above, could someone take a look? Thank you!

hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
…y#2031)

Bumps [boto3](https://github.com/boto/boto3) from 1.24.77 to 1.24.79.
- [Release notes](https://github.com/boto/boto3/releases)
- [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst)
- [Commits](boto/boto3@1.24.77...1.24.79)

---
updated-dependencies:
- dependency-name: boto3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 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.

3 participants