-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
generated_wrapper_instrumentationscope.go
43 lines (34 loc) · 1.19 KB
/
generated_wrapper_instrumentationscope.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
// Code generated by "pdata/internal/cmd/pdatagen/main.go". DO NOT EDIT.
// To regenerate this file run "make genpdata".
package internal
import (
otlpcommon "go.opentelemetry.io/collector/pdata/internal/data/protogen/common/v1"
)
type InstrumentationScope struct {
orig *otlpcommon.InstrumentationScope
state *State
}
func GetOrigInstrumentationScope(ms InstrumentationScope) *otlpcommon.InstrumentationScope {
return ms.orig
}
func GetInstrumentationScopeState(ms InstrumentationScope) *State {
return ms.state
}
func NewInstrumentationScope(orig *otlpcommon.InstrumentationScope, state *State) InstrumentationScope {
return InstrumentationScope{orig: orig, state: state}
}
func GenerateTestInstrumentationScope() InstrumentationScope {
orig := otlpcommon.InstrumentationScope{}
state := StateMutable
tv := NewInstrumentationScope(&orig, &state)
FillTestInstrumentationScope(tv)
return tv
}
func FillTestInstrumentationScope(tv InstrumentationScope) {
tv.orig.Name = "test_name"
tv.orig.Version = "test_version"
FillTestMap(NewMap(&tv.orig.Attributes, tv.state))
tv.orig.DroppedAttributesCount = uint32(17)
}