You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HttpClientModule } from '@angular/common/http';
import {
CompositePropagatorModule,
OpenTelemetryInterceptorModule,
OtelColExporterModule,
} from '@jufab/opentelemetry-angular-interceptor';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
OpenTelemetryInterceptorModule.forRoot({
commonConfig: {
// This helps in development mode to check the traces in console
console: true,
// This flag determines whether the application is running in production mode or not
production: false,
logBody: true,
// Service name should be passed else we would see the default unknown service name in traces
serviceName: 'angular-app',
// this defines the ratio of traces we want to sample
probabilitySampler: '0.7',
},
otelcolConfig: {
url: 'URL here ',
headers: {
// headers here
},
},
}),
// the default OTEL exporter module
OtelColExporterModule,
// this takes care of the context propagation
CompositePropagatorModule,
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
But when I run the application the trace API calls get cancelled automatically , Can you please help with the same Thanks!
The text was updated successfully, but these errors were encountered:
I am trying to use the package with angular 17
package.json
But when I run the application the trace API calls get cancelled automatically , Can you please help with the same Thanks!
The text was updated successfully, but these errors were encountered: