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

Use TraceData.Resource when Span.Resource not available. #254

Merged
merged 1 commit into from
May 21, 2020

Conversation

anuraaga
Copy link
Contributor

Description: <Describe what has changed.

Currently, TraceData.Resource is ignored in xray exporter. This means OTLP ingestion doesn't have resource information available because Span.Resource is never set. This change falls back to TraceData.Resource when needed.

Testing: Unit tests

@anuraaga anuraaga requested a review from a team May 21, 2020 09:05
@codecov
Copy link

codecov bot commented May 21, 2020

Codecov Report

Merging #254 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #254   +/-   ##
=======================================
  Coverage   77.84%   77.85%           
=======================================
  Files         126      126           
  Lines        6528     6530    +2     
=======================================
+ Hits         5082     5084    +2     
  Misses       1166     1166           
  Partials      280      280           
Impacted Files Coverage Δ
exporter/awsxrayexporter/awsxray.go 60.00% <100.00%> (+1.50%) ⬆️

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 95efa1b...b9de489. Read the comment docs.

@tigrannajaryan tigrannajaryan merged commit 9e3bb0f into open-telemetry:master May 21, 2020
wyTrivail referenced this pull request in mxiamxia/opentelemetry-collector-contrib Jul 13, 2020
…ble. (#254)

Currently, TraceData.Resource is ignored in xray exporter. This means OTLP ingestion doesn't have resource information available because Span.Resource is never set. This change falls back to TraceData.Resource when needed.
mxiamxia referenced this pull request in mxiamxia/opentelemetry-collector-contrib Jul 22, 2020
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
golangci-lint runs its checks also on tests files, so make sure that
they build properly before running the linter. there is no obvious
solution to just build all the test without running them, so to work
that around, we specify a -run flag with a value that surely isn't
going to match any test function any time soon. that way we build all
the tests, but no test is run.

also, `go list ./...` returns only packages in the module, but no
packages within submodule, so exporter/trace/jaeger (which is a
submodule) was never on the list. so go test with those packages never
ran the jaeger trace exporter tests. fix this by visiting every
directory with the go.mod file and calling go test [options]
./... therein.
codeboten pushed a commit that referenced this pull request Nov 23, 2022
Current instrumentation uses the entire SQL query as the operation name
which makes traces very hard to read and understand in addition to
introducing high-cardinality issues. This commit fixes the problem by
using only the SQL operation name and the DB name instead of the entire
query.
jj22ee added a commit to jj22ee/opentelemetry-collector-contrib that referenced this pull request Nov 15, 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.

2 participants