1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-27 22:49:15 +02:00

Shrink core.Value (#256)

* shrink the value type

went down from 40 bytes to 24

* add missing license blurb

* stringify value type

* print string value types in stdout exporter

* make Value function take a pointer receiver
This commit is contained in:
Krzesimir Nowak
2019-10-30 23:01:19 +01:00
committed by rghetia
parent de6715fca3
commit 563985f5d1
13 changed files with 536 additions and 510 deletions

View File

@@ -70,9 +70,6 @@ func (m Map) Apply(update MapUpdate) Map {
func (m Map) Value(k core.Key) (core.Value, bool) {
entry, ok := m.m[k]
if !ok {
entry.value.Type = core.INVALID
}
return entry.value, ok
}