From 7b4c60c6edb52c676d53ced730b6af4ded509068 Mon Sep 17 00:00:00 2001 From: Mike Dame Date: Fri, 11 Aug 2023 10:52:50 -0400 Subject: [PATCH] logs: Document Flags mapping in Google Cloud logs appendix (#3629) Co-authored-by: Armin Ruech --- CHANGELOG.md | 3 +++ specification/logs/data-model-appendix.md | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bff2573b7e..77e9e1342f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,9 @@ release. ### Logs +- Update GCP data model to use `TraceFlags` instead of + `gcp.trace_sampled`. ([#3629](https://github.com/open-telemetry/opentelemetry-specification/pull/3629)) + ### Resource ### Compatibility diff --git a/specification/logs/data-model-appendix.md b/specification/logs/data-model-appendix.md index 9d1e3fb8157..6dbf00e9611 100644 --- a/specification/logs/data-model-appendix.md +++ b/specification/logs/data-model-appendix.md @@ -495,6 +495,7 @@ trace | string | The trace associated with the log entry, span_id | string | The span ID within the trace associated with the log entry. | SpanId labels | map | A set of user-defined (key, value) data that provides additional information about the log entry. | Attributes http_request | HttpRequest | The HTTP request associated with the log entry, if any. | Attributes["gcp.http_request"] +trace_sampled | boolean | The sampling decision of the trace associated with the log entry. | TraceFlags.SAMPLED All other fields | | | Attributes["gcp.*"] ### Elastic Common Schema