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

Exposing Exporter services for custom usage. #140

Merged
merged 1 commit into from
Dec 28, 2022
Merged

Conversation

jpoisso
Copy link
Contributor

@jpoisso jpoisso commented Dec 22, 2022

Exporting additional exporter services to be used for bootstrapping outside of the usual module flow.

Since we use async configuration retrieval, we can't offer the configurations to an imported module (ie OpenTelemetryInterceptorModule.forRoot(environment.opentelemetryConfig)).

We have to use a slightly different flow which directly creates a OpenTelemetryHttpInterceptor. Even if the OpenTelemetryHttpInterceptor is given configurations, the ZipkinExporterService does not use the provided configurations so we have to create the service ourselves with our resolved configurations.

@codecov
Copy link

codecov bot commented Dec 22, 2022

Codecov Report

Merging #140 (4b7f7ef) into main (f0e6627) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #140   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines          332       336    +4     
  Branches        61        61           
=========================================
+ Hits           332       336    +4     
Impacted Files Coverage Δ
...ojects/opentelemetry-interceptor/src/public-api.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jufab jufab merged commit bbf3329 into jufab:main Dec 28, 2022
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