Coder Social home page Coder Social logo

Comments (5)

dmathieu avatar dmathieu commented on May 31, 2024

Would the semantic conventions doc be more helpful there?
https://github.com/open-telemetry/semantic-conventions/blob/75f9d428a45f9e779b72c34d9ac3c00625b7472a/docs/attributes-registry/messaging.md

Improved documentation is always welcome though. Do you want to open a PR?

from opentelemetry-go.

joreetz-otto avatar joreetz-otto commented on May 31, 2024

Thanks for this super fast reply.
This documentation is also not clear in this case for me.

An identifier for the messaging system being used. See below for a list of well-known identifiers.

I will for sure update the docs when i know the answer to this

I will open an issue in the linked repo.

from opentelemetry-go.

dmathieu avatar dmathieu commented on May 31, 2024

I'm not sure I understand the source/destination messaging system there.
If you have a span reading from Kafka, that's what its messaging system is. If it's writing to RabbitMQ, that's what its messaging system is.

If you have a span both reading and writing, maybe there should be two spans to properly observe what's happening?

from opentelemetry-go.

pellared avatar pellared commented on May 31, 2024

The docs are generated from https://github.com/open-telemetry/semantic-conventions/blob/v1.24.0/model/registry/messaging.yaml#L210-L245

Do you find these not good enough?

  • // MessagingSystemKey is the attribute Key conforming to the
    // "messaging.system" semantic conventions. It represents an identifier for
    // the messaging system being used. See below for a list of well-known
    // identifiers.
    //
    // Type: Enum
    // RequirementLevel: Optional
    // Stability: experimental
    MessagingSystemKey = attribute.Key("messaging.system")
  • var (
    // Apache ActiveMQ
    MessagingSystemActivemq = MessagingSystemKey.String("activemq")
    // Amazon Simple Queue Service (SQS)
    MessagingSystemAWSSqs = MessagingSystemKey.String("aws_sqs")
    // Azure Event Grid
    MessagingSystemAzureEventgrid = MessagingSystemKey.String("azure_eventgrid")
    // Azure Event Hubs
    MessagingSystemAzureEventhubs = MessagingSystemKey.String("azure_eventhubs")
    // Azure Service Bus
    MessagingSystemAzureServicebus = MessagingSystemKey.String("azure_servicebus")
    // Google Cloud Pub/Sub
    MessagingSystemGCPPubsub = MessagingSystemKey.String("gcp_pubsub")
    // Java Message Service
    MessagingSystemJms = MessagingSystemKey.String("jms")
    // Apache Kafka
    MessagingSystemKafka = MessagingSystemKey.String("kafka")
    // RabbitMQ
    MessagingSystemRabbitmq = MessagingSystemKey.String("rabbitmq")
    // Apache RocketMQ
    MessagingSystemRocketmq = MessagingSystemKey.String("rocketmq")
    )

from opentelemetry-go.

joreetz-otto avatar joreetz-otto commented on May 31, 2024

@dmathieu yes I think you are right that one should have a separate span for receive and send but even though you want to give some metadata about what happens inside the span and thats what these attributes are for in my opinion.
@pellared I cant answer my question from this documentation, so...

I just saw that there is the MessagingOperationKey which should resolve my issue.

from opentelemetry-go.

Related Issues (20)

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.