ng-zipkin
v0.1.0
Published
Angular Module For Zipkin Tracing
Readme
Zipkin Tracing
Zero dependency Zipkin Tracing Module. Works out of the box, just install and import module to Angular application.
Based on packages:
zipkin-> Git: Zipkin JS
Usage
Import ZipkinTracingModule into your Module. E.g:
[
...,
ZipkinTracingModule.forRoot(),
...
]Your app should already have RouterModule and HttpClientModule.
With this configuration you're all set.
By default, it tries to reach Zipkin on address: http://localhost:9411 with service name : browser.
If you need change configuration of tracer, just use ZipkinConfig argument of forRoot method . E.g:
ZipkinTracingModule.forRoot({debug: true, localServiceName: 'angular'})Options of ZipkinProvider E.g:
interface ZipkinConfig {
localServiceName?: string;
remoteServiceMapping?: { [remoteServiceName: string]: string | RegExp; };
debug?: boolean;
sample?: (traceId: TraceId) => boolean;
defaultTags?: { [name: string]: string; };
zipkinBaseUrl?: string;
zipkinConfig?: HttpConfigOptions;
}Module is in alpha stage. Some of the logic may change.
Info
This library was build with @angular-devkit/build-ng-packagr version 0.901.6.
