Giter Club home page Giter Club logo

nsb-diagnostics-poc's Introduction

nsb-diagnostics-poc

This code example shows integration with OpenTelemetry and W3C trace context

It requires RabbitMQ and Zipkin (just use Docker for both) to run.

Values based on open-telemetry/opentelemetry-specification#418

Messaging attributes

Attribute name Notes and examples Required? NServiceBus Value
messaging.system A string identifying the messaging system vendor such as kafka, rabbitmq or activemq. Yes ReadOnlySettings.Get().GetType().Name.Replace("Transport", null).ToLowerInvariant()
messaging.destination The message destination name, e.g. MyQueue or MyTopic. This might be equal to the span name but is required nevertheless. Yes ReadOnlySettings.LogicalAddress().ToString()
messaging.destination_kind The kind of message destination: Either queue or topic. Yes, if either of them applies. Translated from the MessageIntentEnum in the message and OutboundRoutingType
messaging.temp_destination A boolean that is true if the message destination is temporary. If temporary (assumed to be false if missing).
messaging.protocol The name of the transport protocol such as AMQP or MQTT. No
messaging.protocol_version The version of the transport protocol such as 0.9.1. No
messaging.url Connection string such as tibjmsnaming://localhost:7222 or https://queue.amazonaws.com/80398EXAMPLE/MyQueue. No
messaging.message_id A value used by the messaging system as an identifier for the message, represented as a string. No Message.MessageId
messaging.conversation_id A value identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". No "NServiceBus.ConversationId" header

Prometheus

To integrate with Prometheus, in the root run a Prometheus instance with Docker:

docker run `
    -p 9090:9090 `
    -v ${PWD}/prometheus.yml:/etc/prometheus/prometheus.yml `
    prom/prometheus

nsb-diagnostics-poc's People

Contributors

jbogard 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.