Skip to content

Update native OTel to semantic conventions 1.24.0 #2018

@amychisholm03

Description

@amychisholm03

A screenshot that you have tested with "Try this API".

N/A.

What would you like to see in the library?

In order to be spec compliant with the latest stable version of OpenTelemetry semantic conventions, the @google-cloud/pubsub library needs to add the following attribute to its spans: messaging.operation (required). messaging.operation is already included in the span name; it just needs to added to the span attributes as well.

This is a S change that I can submit a PR for; we just need to add these attributes to the create...Span methods in src/telemetry-tracing.ts:

  • For publisher spans, messaging.operation will be set to create.
  • For subscriber spans, messaging.operation will be set to receive.

Describe alternatives you've considered

No response

Additional context/notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: pubsubIssues related to the googleapis/nodejs-pubsub API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions