Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions entity-types/infra-nginxserver/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,35 @@ synthesis:
software.version:
ttl: P1D

- ruleName: infra_nginxserver_otel_span
# Span-based rule. Spans emitted by ngx_otel_module carry no nginx identity by default, so
# they otherwise fall through to the generic EXT-SERVICE catch-all instead of the real
# NGINXSERVER entity. When the collector stamps the same nginx.deployment.name +
# nginx.server.endpoint identity used by the Metric rules onto the spans, this rule resolves
# them to the SAME entity.guid (same compositeIdentifier), so a span and a metric from the
# same NGINX process map to one entity.
compositeIdentifier:
separator: ":"
attributes:
- nginx.deployment.name
- nginx.server.endpoint
name: nginx.display.name
encodeIdentifierInGUID: true
conditions:
- attribute: eventType
value: Span
- attribute: nginx.deployment.name
present: true
- attribute: nginx.server.endpoint
present: true
- attribute: nginx.display.name
present: true
- attribute: instrumentation.provider
value: opentelemetry
tags:
nginx.server.endpoint:
nginx.deployment.name:

tags:
# For OpenTelemetry
telemetry.sdk.name:
Expand Down
Loading