5
5
6
6
package io .opentelemetry .instrumentation .docs .internal ;
7
7
8
- import java .util .List ;
9
8
import java .util .Map ;
10
9
import java .util .Set ;
11
10
@@ -29,9 +28,6 @@ public void setMetadata(InstrumentationMetaData metadata) {
29
28
}
30
29
31
30
private InstrumentationMetaData metadata ;
32
- private List <EmittedMetrics .Metric > metrics ;
33
- private List <EmittedSpans .EmittedSpanAttribute > spanAttributes ;
34
- private List <String > spanKinds ;
35
31
private EmittedScope .Scope scope ;
36
32
37
33
/**
@@ -45,24 +41,9 @@ public InstrumentationEntity(Builder builder) {
45
41
this .group = builder .group ;
46
42
this .metadata = builder .metadata ;
47
43
this .targetVersions = builder .targetVersions ;
48
- this .metrics = builder .metrics ;
49
- this .spanAttributes = builder .spanAttributes ;
50
- this .spanKinds = builder .spanKinds ;
51
44
this .scope = builder .scope ;
52
45
}
53
46
54
- public void setMetrics (List <EmittedMetrics .Metric > metrics ) {
55
- this .metrics = metrics ;
56
- }
57
-
58
- public void setSpanAttributes (List <EmittedSpans .EmittedSpanAttribute > spanAttributes ) {
59
- this .spanAttributes = spanAttributes ;
60
- }
61
-
62
- public void setSpanKinds (List <String > spanKinds ) {
63
- this .spanKinds = spanKinds ;
64
- }
65
-
66
47
public void setScope (EmittedScope .Scope scope ) {
67
48
this .scope = scope ;
68
49
}
@@ -91,18 +72,6 @@ public Map<InstrumentationType, Set<String>> getTargetVersions() {
91
72
return targetVersions ;
92
73
}
93
74
94
- public List <EmittedMetrics .Metric > getMetrics () {
95
- return metrics ;
96
- }
97
-
98
- public List <EmittedSpans .EmittedSpanAttribute > getSpanAttributes () {
99
- return spanAttributes ;
100
- }
101
-
102
- public List <String > getSpanKinds () {
103
- return spanKinds ;
104
- }
105
-
106
75
public EmittedScope .Scope getScope () {
107
76
return scope ;
108
77
}
@@ -119,9 +88,6 @@ public static class Builder {
119
88
private String group ;
120
89
private InstrumentationMetaData metadata ;
121
90
private Map <InstrumentationType , Set <String >> targetVersions ;
122
- private List <EmittedMetrics .Metric > metrics ;
123
- private List <EmittedSpans .EmittedSpanAttribute > spanAttributes ;
124
- private List <String > spanKinds ;
125
91
private EmittedScope .Scope scope ;
126
92
127
93
public Builder srcPath (String srcPath ) {
@@ -154,21 +120,6 @@ public Builder targetVersions(Map<InstrumentationType, Set<String>> targetVersio
154
120
return this ;
155
121
}
156
122
157
- public Builder metrics (List <EmittedMetrics .Metric > metrics ) {
158
- this .metrics = metrics ;
159
- return this ;
160
- }
161
-
162
- public Builder spanAttributes (List <EmittedSpans .EmittedSpanAttribute > spanAttributes ) {
163
- this .spanAttributes = spanAttributes ;
164
- return this ;
165
- }
166
-
167
- public Builder spanKinds (List <String > spanKinds ) {
168
- this .spanKinds = spanKinds ;
169
- return this ;
170
- }
171
-
172
123
public Builder scope (EmittedScope .Scope scope ) {
173
124
this .scope = scope ;
174
125
return this ;
0 commit comments