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

Handle translation of OC span.kind attribute for client/server #1636

Merged
merged 1 commit into from
Sep 11, 2020

Conversation

objectiser
Copy link
Contributor

@objectiser objectiser commented Aug 25, 2020

Signed-off-by: Gary Brown gary@brownuk.com

Description:
Currently OpenCensus seems to allow span kind to be reported via a field (only client and server values) or an attribute (only consumer and producer values).

This PR extends support for handling client and server values via the attribute. This additional flexibility will enable Envoy (using the current C++ opencensus client with no span kind field support) to report the span kind value.

Link to tracking Issue:
Fixes #1608

Testing:
Unit test.

Documentation:

Signed-off-by: Gary Brown <gary@brownuk.com>
@codecov
Copy link

codecov bot commented Aug 25, 2020

Codecov Report

Merging #1636 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1636      +/-   ##
==========================================
- Coverage   91.90%   91.89%   -0.01%     
==========================================
  Files         254      254              
  Lines       17309    17313       +4     
==========================================
+ Hits        15907    15909       +2     
- Misses       1006     1007       +1     
- Partials      396      397       +1     
Impacted Files Coverage Δ
translator/internaldata/oc_to_traces.go 86.73% <100.00%> (+0.27%) ⬆️
translator/internaldata/resource_to_oc.go 89.36% <0.00%> (-2.13%) ⬇️

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 2dfc893...b4709aa. Read the comment docs.

@objectiser
Copy link
Contributor Author

Test failures seem unrelated - e.g. probabilistic sampler processor.

@bogdandrutu bogdandrutu merged commit 7071a9d into open-telemetry:master Sep 11, 2020
@iNikem
Copy link
Contributor

iNikem commented Sep 14, 2020

@bogdandrutu @objectiser Seems like this merge has broken the main branch: https://github.com/open-telemetry/opentelemetry-collector/commits/master

@tigrannajaryan
Copy link
Member

Did this branch pass the CI build? master is now broken.

tigrannajaryan pushed a commit that referenced this pull request Sep 14, 2020
#1636)"

This reverts commit 7071a9d.

I am reverting the commit since it broke the master build.
tigrannajaryan added a commit that referenced this pull request Sep 14, 2020
#1636)" (#1775)

This reverts commit 7071a9d.

I am reverting the commit since it broke the master build.
@tigrannajaryan
Copy link
Member

Reverted in #1775 since this broke the master build.

@objectiser
Copy link
Contributor Author

@objectiser objectiser deleted the ocspankind branch September 14, 2020 17:32
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
This patch removes `ApplyConfig` method and `Config` struct from
`go.opentelemetry.io/otel/sdk/trace` package.  To ensure valid config
for TracerProvider, it adds `ensureValidTracerProviderConfig` private
function.
Jaeger and Zipkin have been used the `Config` directly across package
boundaries. Since `Config` is removed, they can't use it. This change,
thus, replaces `WithSDK` with `WithSDKOptions`.

Resolves open-telemetry#1636, open-telemetry#1705.
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
This is a minor fix of a typo in the dependencies documentation.`@io_opentelemetry_cpp/api:with_abseil` is not a valid Bazel target name, it should instead be @io_opentelemetry_cpp//api:with_abseil.
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.

Enable OC span translation to handle span.kind attribute with client and server values
4 participants