AttributeNames enum

Attribute keys this package sets on every span it creates.

Signature:

export declare enum AttributeNames 

Enumeration Members

Member

Value

Description

COMPONENT

"component"

Always 'imq', marking the span as produced by this instrumentation.

ERROR_MESSAGE

"error.message"

Failure detail, set alongside an ERROR span status.

IMQ_CLIENT

"imq.client"

Which client issued the request, taken from the IMQ request's from.

RESOURCE_NAME

"resource.name"

What ran, as Name.method — the IMQ service and method for an RPC span, or ClassName.methodName for a traced method. This is the field to group by; the span name only says which of the three kinds it is.

SERVICE_NAME

"service.name"

The IMQ service involved in the call, or the host package name.

SPAN_KIND

"span.kind"

'server' or 'client' — see TraceKind. Duplicates the OpenTelemetry span kind as a plain attribute, for backends that only read attributes.

Remarks

These are the pre-OpenTelemetry Datadog-style keys (resource.name, service.name, component) rather than the current OpenTelemetry semantic conventions, which is what lets the spans land in a Datadog-shaped backend unmodified. If your backend expects semantic-convention names instead, remap them in a span processor — nothing here reads these keys back.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.