Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemas/tracing.yml: add span.id #882

Merged
merged 3 commits into from
Jul 2, 2020
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Thanks, you're awesome :-) -->
* Added `x509.*` field set. (#762)
* Added more account and project cloud metadata. (#816)
* Added missing field reuse of `pe` at `process.parent.pe` #868
* Added `span.id` to the tracing fieldset, for additional log correlation (#882)

#### Improvements

Expand Down
5 changes: 5 additions & 0 deletions code/go/ecs/tracing.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5904,6 +5904,21 @@ Distributed tracing makes it possible to analyze performance throughout a micros

// ===============================================================

| span.id
| Unique identifier of the span.

A span represents an operation within a transaction, such as a request to another service, or a database query.

type: keyword



example: `3ff9a8981b7ccd5a`

| extended

// ===============================================================

| trace.id
| Unique identifier of the trace.

Expand Down
10 changes: 10 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5099,6 +5099,16 @@
- to queries made through multiple back-end services.
type: group
fields:
- name: span.id
level: extended
type: keyword
ignore_above: 1024
description: 'Unique identifier of the span.

A span represents an operation within a transaction, such as a request to
another service, or a database query.'
example: 3ff9a8981b7ccd5a
default_field: false
- name: trace.id
level: extended
type: keyword
Expand Down
1 change: 1 addition & 0 deletions generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
1.6.0-dev,true,source,source.user.id,keyword,core,,,Unique identifier of the user.
1.6.0-dev,true,source,source.user.name,keyword,core,,albert,Short name or login of the user.
1.6.0-dev,true,source,source.user.name.text,text,core,,albert,Short name or login of the user.
1.6.0-dev,true,span,span.id,keyword,extended,,3ff9a8981b7ccd5a,Unique identifier of the span.
1.6.0-dev,true,threat,threat.framework,keyword,extended,,MITRE ATT&CK,Threat classification framework.
1.6.0-dev,true,threat,threat.tactic.id,keyword,extended,array,TA0040,Threat tactic id.
1.6.0-dev,true,threat,threat.tactic.name,keyword,extended,array,impact,Threat tactic.
Expand Down
14 changes: 14 additions & 0 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6683,6 +6683,20 @@ source.user.name:
original_fieldset: user
short: Short name or login of the user.
type: keyword
span.id:
dashed_name: span-id
description: 'Unique identifier of the span.

A span represents an operation within a transaction, such as a request to another
service, or a database query.'
example: 3ff9a8981b7ccd5a
flat_name: span.id
ignore_above: 1024
level: extended
name: span.id
normalize: []
short: Unique identifier of the span.
type: keyword
tags:
dashed_name: tags
description: List of keywords used to tag each event.
Expand Down
14 changes: 14 additions & 0 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8993,6 +8993,20 @@ tracing:
of the requests - from the initial web request in the front-end service - to queries
made through multiple back-end services.
fields:
span.id:
dashed_name: span-id
description: 'Unique identifier of the span.

A span represents an operation within a transaction, such as a request to
another service, or a database query.'
example: 3ff9a8981b7ccd5a
flat_name: span.id
ignore_above: 1024
level: extended
name: span.id
normalize: []
short: Unique identifier of the span.
type: keyword
trace.id:
dashed_name: trace-id
description: 'Unique identifier of the trace.
Expand Down
8 changes: 8 additions & 0 deletions generated/elasticsearch/6/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2482,6 +2482,14 @@
}
}
},
"span": {
"properties": {
"id": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"tags": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
8 changes: 8 additions & 0 deletions generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2481,6 +2481,14 @@
}
}
},
"span": {
"properties": {
"id": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"tags": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
10 changes: 10 additions & 0 deletions schemas/tracing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@
Unique identifier of the transaction.

A transaction is the highest level of work measured within a service, such as a request to a server.

- name: span.id
level: extended
type: keyword
example: 3ff9a8981b7ccd5a
short: Unique identifier of the span.
description: >
Unique identifier of the span.

A span represents an operation within a transaction, such as a request to another service, or a database query.