GithubHelp home page GithubHelp logo

pugmas / sample.opentracing.zipkintracer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wasdev/sample.opentracing.zipkintracer

0.0 0.0 0.0 62 KB

Zipkin Opentracing tracer implementation for use with Liberty

License: Apache License 2.0

Java 100.00%

sample.opentracing.zipkintracer's Introduction

Tracer Implementation

A demo project that shows how to implement a tracer for the Liberty mpOpentracing-2.0 feature. Once implemented as an OSGI bundle, a tracer can be included as a user feature that will automatically pull the mpOpentracing-2.0 feature.

Building this project relies on the bnd-process plugin to process the bnd.bnd file which will generate the MANIFEST.MF to be included in the project. Additionally, annotations found in the OpentracingZipkinTracerFactory.java provide information for the manifest. If you decide to roll your own tracer, then you'll need to ensure your factory implementation provides these annotations to correctly generate the manifest file.

opentracingZipkin

To compile and package, run:

mvn package

This will build target/liberty-opentracing-zipkintracer-2.0-sample.zip. Copy this file to ${wlp.user.dir} and unzip it to install the feature extension:

$ cp target/liberty-opentracing-zipkintracer-2.0-sample.zip ${WLP}/usr/
$ cd ${WLP}/usr/
$ unzip liberty-opentracing-zipkintracer-2.0-sample.zip
$ ls -R extension/
extension/:
lib

extension/lib:
com.ibm.ws.io.opentracing.zipkintracer-0.33.jar  features

extension/lib/features:
opentracingZipkin-0.33.mf

Enable the feature in server.xml:

<featureManager>
  [...]
  <feature>usr:opentracingZipkin-0.33</feature>
</featureManager>

Finally, enable the tracer with a configuration element (this defaults to a server at http://zipkin:9411/):

<opentracingZipkin />

Configuring the tracer

The opentracingZipkin element supports configuration of the zipkin server host and port, and detailed configuration of the zipkin builder and reporter. This support is provided by the Config class in OpentracingZipkinTracerFactory.java. The options are localized and described in detail in metatype.properties.

For example, to specify a different host and port:

<opentracingZipkin host="myhost.com" port="4433" />

sample.opentracing.zipkintracer's People

Contributors

fmhwong avatar dtadcox avatar steve-fontes avatar kgibm avatar gcharters avatar hughesj avatar dependabot[bot] avatar pugmas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.