-
Notifications
You must be signed in to change notification settings - Fork 819
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
feat(otlp-exporter): add timeout env var #2738
feat(otlp-exporter): add timeout env var #2738
Conversation
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #2738 +/- ##
==========================================
- Coverage 92.78% 92.51% -0.28%
==========================================
Files 183 183
Lines 5921 5958 +37
Branches 1257 1266 +9
==========================================
+ Hits 5494 5512 +18
- Misses 427 446 +19
|
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
I haven't updated documentation yet. I would like some feedback on this pr before I update documentation please. |
Does |
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
…ntelemetry-js into add-exporter-timeout Merge main into add-exporter-timeout
Yes it should, signal specific configs take priority over generic ones |
Got it. I just implemented that logic for |
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Added timeout config information to each otlp trace exporter readme. This pr is ready for review/merge from my end. |
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
…ntelemetry-js into add-exporter-timeout
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Lint test is passing now. The codecov tests are failing but they were passing previously. The codecov path test is saying that the Should I move these tests into the |
Tests failing after main merge. I'm seeing this test failing in the 'main' branch as well (when I run the tests locally). |
@dyladan moved the latest label of @opentelemetry/api from verion 1.04 to 1.1.0. This could be the cause here in case several API versions are installed. |
local tests on main are green for me. Seems like CI specific failures. Maybe some caching? |
It must have been the cache. The local tests are passing now both in main and in this pr branch. |
Was this a codecov config change? I assume so because these tests are all passing when I run it locally. |
Codecov would not affect the tests anyway but this is probably because the 1.1 api is now latest. There is most likely a version mismatch somewhere. I'm on my phone and ooo right now but may be able to look later if I have time |
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Looks like 1 browser test is failing after merging main into this branch. Not sure why. All tests passing when I run it locally. |
re-triggered the test and it's green now. Seems to be a test issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % nits
experimental/packages/exporter-trace-otlp-http/test/browser/CollectorTraceExporter.test.ts
Outdated
Show resolved
Hide resolved
experimental/packages/exporter-trace-otlp-http/test/browser/CollectorTraceExporter.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % legendecas' nit
… tests Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
One test failing in an unrelated package (didn't work on that package in this pr). Could this be a test issue again like @Flarna mentioned earlier for another time an unrelated test was failing? |
…ts with settimeout Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Failure seems to be in the OTLPTraceExporter which is touched by this PR |
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
The real http request tests were failing randomly. I think it was a timing issue. So I moved those tests to their own test suite and it's passing now. Also ran it locally a handful of times and it's all green as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM was just a bit surprised to see the behavior split by major node version
@@ -60,6 +60,7 @@ All notable changes to experimental packages in this project will be documented | |||
* feat(proto): add @opentelemetry/otlp-transformer package with hand-rolled transformation #2746 @dyladan | |||
* feat(sdk-metrics-base): shutdown and forceflush on MeterProvider #2890 @legendecas | |||
* feat(sdk-metrics-base): return the same meter for identical input to getMeter #2901 @legendecas | |||
* feat(otlp-exporter): add [OTEL_EXPORTER_OTLP_TIMEOUT](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options) env var to otlp exporters #2738 @svetlanabrennan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
experimental/packages/otlp-exporter-base/src/platform/browser/OTLPExporterBrowserBase.ts
Show resolved
Hide resolved
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
Signed-off-by: Svetlana Brennan svetlana.svn@gmail.com
Which problem is this PR solving?
Partially Fixes #2706 (issue)
This is just the first PR for issue #2706 that adds
OTEL_EXPORTER_OTLP_TIMEOUT
&OTEL_EXPORTER_OTLP_TRACES_TIMEOUT
as an environment variable for the otlp trace exporters. I wanted to split this issue up in separate prs so it's easier to review and I need this timeout variable for another pr regarding retry logic I'm working on.Short description of the changes
OTEL_EXPORTER_OTLP_TIMEOUT
as default environment variableOTEL_EXPORTER_OTLP_TRACES_TIMEOUT
as default environment variabletimeoutMillis
property to theOTLPExporterBase
classsendWithHttp
utility function)sendWithXhr
utility function)send
utility function)Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: