Skip to content

Commit

Permalink
[loggingexporter] Add InstrumentationLibararyScope attributes (#5976)
Browse files Browse the repository at this point in the history
* add scope attributes to debug log

* add changelog entry

* move changelog entry to correct section
  • Loading branch information
pirgeo authored Aug 26, 2022
1 parent 940943c commit 25192af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 🧰

Expand Down
1 change: 1 addition & 0 deletions exporter/loggingexporter/internal/otlptext/databuffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 25192af

Please sign in to comment.