From 25192afe3de667d7b227d41578080c3f7593aa5c Mon Sep 17 00:00:00 2001 From: Georg Pirklbauer Date: Fri, 26 Aug 2022 18:11:16 +0200 Subject: [PATCH] [loggingexporter] Add InstrumentationLibararyScope attributes (#5976) * add scope attributes to debug log * add changelog entry * move changelog entry to correct section --- CHANGELOG.md | 1 + exporter/loggingexporter/internal/otlptext/databuffer.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce5fb577a7e..151fe842d96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ - Add an AsRaw func on the flags, lots of places to encode these flags. (#5934) - Change pdata generated types to use type definition instead of aliases. (#5936) - Improves documentation, and makes code easier to read/understand. +- Log `InstrumentationScope` attributes in `loggingexporter` (#5976) ### 🧰 Bug fixes 🧰 diff --git a/exporter/loggingexporter/internal/otlptext/databuffer.go b/exporter/loggingexporter/internal/otlptext/databuffer.go index 65a4f6b7b72..5b26a7894f9 100644 --- a/exporter/loggingexporter/internal/otlptext/databuffer.go +++ b/exporter/loggingexporter/internal/otlptext/databuffer.go @@ -56,6 +56,7 @@ func (b *dataBuffer) logInstrumentationScope(il pcommon.InstrumentationScope) { "InstrumentationScope %s %s", il.Name(), il.Version()) + b.logAttributes("InstrumentationScope attributes", il.Attributes()) } func (b *dataBuffer) logMetricDescriptor(md pmetric.Metric) {