56 |
59 | projects/opentelemetry-interceptor/src/lib/services/propagator/http-trace-context-propagator/http-trace-context-propagator.module.ts
60 |
import { NgModule } from '@angular/core';
77 | import { CommonModule } from '@angular/common';
78 | import { HttpTraceContextPropagatorService } from './http-trace-context-propagator.service';
79 | import { OTELCOL_PROPAGATOR } from '../propagator.interface';
80 |
81 |
82 |
83 | @NgModule({
84 | declarations: [],
85 | imports: [
86 | CommonModule,
87 | ],
88 | providers: [
89 | { provide: OTELCOL_PROPAGATOR, useClass: HttpTraceContextPropagatorService }
90 | ]
91 | })
92 | export class HttpTraceContextPropagatorModule {
93 | }
94 |
95 | This is a call to the JsonP api
9 |There's no Header because JSONP don't use...
10 |result call : {{result?.result}}
11 |This is a form to post a value and retrieve it in trace
9 | 19 |result call : {{result?.result}}
21 |This is a call to the backend api http://localhost:3000/api (with proxy conf)
10 |You can see a trace in navigator console (and collector if you configure one)
11 |with the environment configuration
12 | 27 |with all the module in app.module.ts
28 | 36 |You can see the B3 headers, W3CTraceContext header, Jaeger Propagator header and AWS X-Ray header added
37 | 54 |result call : {{result?.result}}
55 |This is a call to the JsonP api
9 |There's no Header because JSONP don't use...
10 |result call : {{result?.result}}
11 |This is a form to post a value and retrieve it in trace
9 | 19 |result call : {{result?.result}}
21 |This is a call to the backend api http://localhost:3000/api (with proxy conf)
10 |You can see a trace in navigator console (and collector if you configure one)
11 |with the environment configuration
12 | 27 |with all the module in app.module.ts
28 | 36 |You can see the B3 headers, W3CTraceContext header, Jaeger Propagator header And AWS X-Ray header added
37 | 54 |result call : {{result?.result}}
55 |result2 call : {{result2?.result}}
56 |