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

automatically add traces / metrics paths #806

Merged

Conversation

GaryPWhite
Copy link
Contributor

Resolves #773

@GaryPWhite GaryPWhite requested a review from a team June 3, 2022 13:17
@GaryPWhite
Copy link
Contributor Author

noting that we could probably add logs exporter -- I noticed there was documentation for log signals, but the logs.rs exporter doesn't exist :)

@TommyCpp
Copy link
Contributor

TommyCpp commented Jun 5, 2022

noting that we could probably add logs exporter -- I noticed there was documentation for log signals, but the logs.rs exporter doesn't exist :)

Ahh yeah once we merged #788 we can implement a logs exporter

@codecov
Copy link

codecov bot commented Jun 5, 2022

Codecov Report

Merging #806 (ed5eae5) into main (1f84f4a) will increase coverage by 0.0%.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main    #806   +/-   ##
=====================================
  Coverage   69.7%   69.8%           
=====================================
  Files        110     110           
  Lines       9061    9072   +11     
=====================================
+ Hits        6324    6334   +10     
- Misses      2737    2738    +1     
Impacted Files Coverage Δ
opentelemetry-otlp/src/span.rs 0.0% <ø> (ø)
opentelemetry-datadog/src/exporter/model/v03.rs 85.4% <0.0%> (-1.6%) ⬇️
opentelemetry-datadog/src/exporter/model/v05.rs 82.3% <0.0%> (-1.6%) ⬇️
opentelemetry-sdk/src/trace/span_processor.rs 79.7% <0.0%> (-0.1%) ⬇️
opentelemetry-http/src/lib.rs 12.2% <0.0%> (ø)
opentelemetry-jaeger/src/lib.rs 93.0% <0.0%> (ø)
opentelemetry-sdk/src/runtime.rs 69.7% <0.0%> (ø)
opentelemetry-datadog/src/exporter/model/mod.rs 77.3% <0.0%> (ø)
opentelemetry-sdk/src/trace/runtime.rs 15.7% <0.0%> (+0.3%) ⬆️
... and 1 more

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 1f84f4a...ed5eae5. Read the comment docs.

Copy link
Contributor

@TommyCpp TommyCpp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it generally looks good. Thanks! The CI failure seems to be caused by unformatted code. Running cargo fmt should fix it.

One ask I have is maybe we can add some document to explain the relationship between OTEL_EXPORTER_OTLP_END and OTEL_EXPORTER_OTLP_{signal}_ENDPOINT like https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#endpoint-urls-for-otlphttp.

And reference it from env var constants. It may be easier for user to understand what to choose

@GaryPWhite
Copy link
Contributor Author

added links to the spec from those constants -- hope that helps!

@GaryPWhite
Copy link
Contributor Author

noting that we could probably add logs exporter -- I noticed there was documentation for log signals, but the logs.rs exporter doesn't exist :)

Ahh yeah once we merged #788 we can implement a logs exporter

I can make an issue or continue from #773 when it is merged! feel free to assign me or let me know here!

@GaryPWhite GaryPWhite requested a review from TommyCpp June 16, 2022 14:50
Copy link
Contributor

@TommyCpp TommyCpp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems log may need sometime to land. I think we can close #773 and create a new one for add log path and related envionment variables.

The change looks nice 👍

@jtescher
Copy link
Member

Just waiting on tests/lints now?

@GaryPWhite
Copy link
Contributor Author

sorry about that -- doesn't run without maintainers clicking it so the feedback loop is long :)

@TommyCpp
Copy link
Contributor

sorry about that -- doesn't run without maintainers clicking it so the feedback loop is long :)

It only applies to the first PR(to prevent bad actors from injecting crypto code in PR to exploit CI pipeline). Should be better once it's merged

@TommyCpp
Copy link
Contributor

Running ./precommit.sh can help find the lint issue

@GaryPWhite
Copy link
Contributor Author

alright let me run that and be back in a sec

@TommyCpp
Copy link
Contributor

Emm looks like the EasyCLA stuck again 😞

@GaryPWhite
Copy link
Contributor Author

no worries. I'll find something to fix i'm sure with the script and push a new one up

@TommyCpp TommyCpp merged commit 532333f into open-telemetry:main Jun 20, 2022
@GaryPWhite
Copy link
Contributor Author

GaryPWhite commented Jun 21, 2022

nice! looks like it went through 💯 Thanks for the help :)

@GaryPWhite GaryPWhite deleted the oltp_http_exporter_signal_path branch June 21, 2022 12:00
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.

Add signal path automatically for OTLP HTTP exporter
3 participants