Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ template:
unit: nanos
dropped_events_count:
type: long
attributes:
type: passthrough
dynamic: true
priority: 20
properties:
elastic.profiler_stack_trace_ids:
type: counted_keyword
links:
synthetic_source_keep: arrays
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,21 @@ traces@lifecycle:
index: $datastream-backing-index
- is_true: $datastream-backing-index
- match: { .$datastream-backing-index.settings.index.lifecycle.name: "traces@lifecycle" }
---
"profiler_stack_trace_ids field should have type counted_keyword":
- do:
bulk:
index: traces-generic.otel-default
refresh: true
body:
- create: {}
- '{"@timestamp":"2024-07-18T14:49:33.467654000Z","data_stream":{"dataset":"generic.otel","namespace":"default"}, "span_id":"1", "attributes": {"elastic.profiler_stack_trace_ids": "S7VyNjRieh4zCEmv7MiwwAcaFlvHvn1cleFkExsq-nbA"}}'
- is_false: errors
- do:
indices.get_data_stream:
name: traces-generic.otel-default
- set: { data_streams.0.indices.0.index_name: idx0name }
- do:
indices.get_mapping:
index: $idx0name
- match: { .$idx0name.mappings.properties.attributes.properties.elastic\.profiler_stack_trace_ids.type: 'counted_keyword' }