Description
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 tocreate
. - For subscriber spans,
messaging.operation
will be set toreceive
.
Describe alternatives you've considered
No response
Additional context/notes
No response