Coder Social home page Coder Social logo

dd-trace-java-kinesis-example's Introduction

Kinesis Context Propagation Examples

This repository contains example producers and consumers using the AWS sdk in additon to KPL/KCL. It leaves out the details of setting up the specific clients

The SomeMessage class implements TextMap which is the holder for propagation headers and values. An alternative approach to using a Map inside the message would be to specify fields for all of the propagation headers separately inside the class and implementing iterator on those

The headers for Datadog propagation are:

  TRACE_ID_KEY = "x-datadog-trace-id";
  SPAN_ID_KEY = "x-datadog-parent-id";
  SAMPLING_PRIORITY_KEY = "x-datadog-sampling-priority";
  ORIGIN_KEY = "x-datadog-origin";

from DatadogHttpCodec with "ot-baggage-{name}" used for baggage

The headers for B3 propagation are:

  TRACE_ID_KEY = "X-B3-TraceId";
  SPAN_ID_KEY = "X-B3-SpanId";
  SAMPLING_PRIORITY_KEY = "X-B3-Sampled";

from B3HttpCodec

A third approach would be using a separate bridge class that implements TextMap and in turn set/gets items from message

Setting up the tracer

With the java agent installed with the application, there is no setup required. If the java agent is not installed, NoAgentMain shows an example of setting up the tracer manually.

Reference Documentation:

dd-trace-java-kinesis-example's People

Contributors

randomanderson avatar

Watchers

 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.