You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[exporter/elasticsearch] Update OTEL SemConv version and Fix ECS mapping for messaging.destination.name (open-telemetry#43884)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
- Fixes the ECS mapping for the OTEL sem conv
`messaging.destination.name` field which should map to
`span.message.queue.name` or `transaction.message.queue.name` based on
the trace type (Elastic span or transaction)
* This mapping was added in a recent PR
open-telemetry#43807
- Add the current latest OTEL SemConv version `v1.37.0` to introduce
`deployment.environment.name` which maps to `service.environment`.
- The prior version of SemConv is kept to maintain backwards
compatibility for deprecated attributes.
<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixesopen-telemetry#43805
and
open-telemetry#43806
<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Updated unit tests
- Setup a local collector with the elasticsearch exporter to validate
indexed documents
<!--Describe the documentation added.-->
#### Documentation
- Updates the `README.md` with OTEL semconv attributes that were
recently added to the ECS mappings
# Use this changelog template to create an entry for release notes.
2
+
3
+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4
+
change_type: enhancement
5
+
6
+
# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
7
+
component: exporter/elasticsearch
8
+
9
+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10
+
note: Add support for latest OTEL SemConv version and fix Elasticsearch exporter ECS mapping for message.destination.name which is different for Elastic spans or transactions
11
+
12
+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13
+
issues: [43805,43806]
14
+
15
+
# (Optional) One or more lines of additional information to render under the primary note.
16
+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17
+
# Use pipe (|) for multiline entries.
18
+
subtext:
19
+
20
+
# If your change doesn't affect end users or the exported elements of any package,
21
+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22
+
# Optional: The change log or logs in which this entry should be included.
23
+
# e.g. '[user]' or '[user, api]'
24
+
# Include 'user' if the change is relevant to end users.
25
+
# Include 'api' if there is a change to a library API.
Copy file name to clipboardExpand all lines: exporter/elasticsearchexporter/README.md
+74-33Lines changed: 74 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -418,44 +418,80 @@ exporters:
418
418
419
419
`elasticsearchexporter` follows ECS mapping defined here: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model-appendix.md#elastic-common-schema
420
420
421
-
When `mode` is set to `ecs`, `elasticsearchexporter` performs conversions for resource-level attributes from their Semantic Conventions (SemConv) names to equivalent Elastic Common Schema (ECS) names.
421
+
When `mode` is set to `ecs`, `elasticsearchexporter` performs conversions for resource-level and record-level (log or trace) attributes from their Semantic Conventions (SemConv) names to equivalent Elastic Common Schema (ECS) names.
422
422
423
423
If the target ECS field name is specified as an empty string (`""`), the converter will neither convert the SemConv key to the equivalent ECS name nor pass through the SemConv key as-is to become the ECS name.
424
424
425
425
When "Preserved" is true, the attribute will be preserved in the payload and duplicated as mapped to its ECS equivalent.
426
426
427
-
| Semantic Convention Name | ECS Name | Preserve |
@@ -508,6 +544,11 @@ Otherwise, it is mapped to an empty string ("").
508
544
509
545
In case the record contains `timestamp`, this value is used. Otherwise, the `observed timestamp` is used.
510
546
547
+
### `messaging.destination.name`
548
+
549
+
Maps to `span.message.queue.name` for regular spans, but to `transaction.message.queue.name` when the `processor.event` attribute equals "transaction".
550
+
This attribute is only applicable at the trace level.
551
+
511
552
## Setting a document id dynamically
512
553
513
554
The `logs_dynamic_id` setting allows users to set the document ID dynamically based on a log record attribute.
0 commit comments