projects/isy-angular-widgets/src/lib/http/zipkin-open-tracing-http-interceptor.ts
Implements the OpenTracingHttpInterceptor using the Zipkin implementation of the OpenTracing standard.
Properties |
|
Methods |
constructor()
|
|
Constructor that configures an OpenTracingHttpInterceptor to use ZIPKIN standard |
| intercept | ||||||||||||
intercept(req: HttpRequest
|
||||||||||||
|
Inherited from
OpenTracingHttpInterceptor
|
||||||||||||
|
Defined in
OpenTracingHttpInterceptor:42
|
||||||||||||
|
Appends a random traceId and spanId as header to the given request
Parameters :
Returns :
Observable<HttpEvent<unknown>>
The result Observable |
| Protected Readonly spanHeaderName |
Type : string
|
|
Inherited from
OpenTracingHttpInterceptor
|
|
Defined in
OpenTracingHttpInterceptor:24
|
| Protected Readonly traceHeaderName |
Type : string
|
|
Inherited from
OpenTracingHttpInterceptor
|
|
Defined in
OpenTracingHttpInterceptor:23
|
import {OpenTracingHttpInterceptor} from './open-tracing-http-interceptor';
import {Injectable} from '@angular/core';
import {OpenTraceHeaders} from './open-tracing-headers';
/**
* Implements the {@link OpenTracingHttpInterceptor} using the <a href="https://zipkin.io/">Zipkin</a> implementation
* of the OpenTracing standard.
*/
@Injectable()
export class ZipkinOpenTracingHttpInterceptor extends OpenTracingHttpInterceptor {
/**
* Constructor that configures an {@link OpenTracingHttpInterceptor} to use ZIPKIN standard
*/
constructor() {
super(OpenTraceHeaders.ZIPKIN_TRACE_ID, OpenTraceHeaders.ZIPKIN_SPAN_ID);
}
}