@opentelemetry/otlp-grpc-exporter-base 0.37.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/build/src/LogsExportServiceClient.d.ts +3 -0
  2. package/build/src/LogsExportServiceClient.js +46 -0
  3. package/build/src/LogsExportServiceClient.js.map +1 -0
  4. package/build/src/MetricsExportServiceClient.d.ts +3 -0
  5. package/build/src/MetricsExportServiceClient.js +46 -0
  6. package/build/src/MetricsExportServiceClient.js.map +1 -0
  7. package/build/src/TraceExportServiceClient.d.ts +3 -0
  8. package/build/src/TraceExportServiceClient.js +46 -0
  9. package/build/src/TraceExportServiceClient.js.map +1 -0
  10. package/build/src/generated/root.d.ts +4 -0
  11. package/build/src/generated/root.js +13013 -0
  12. package/build/src/generated/root.js.map +1 -0
  13. package/build/src/internal-types.d.ts +8 -0
  14. package/build/src/internal-types.js +18 -0
  15. package/build/src/internal-types.js.map +1 -0
  16. package/build/src/types.d.ts +6 -4
  17. package/build/src/types.js +1 -0
  18. package/build/src/types.js.map +1 -1
  19. package/build/src/util.d.ts +1 -1
  20. package/build/src/util.js +32 -28
  21. package/build/src/util.js.map +1 -1
  22. package/build/src/version.d.ts +1 -1
  23. package/build/src/version.js +1 -1
  24. package/build/src/version.js.map +1 -1
  25. package/package.json +13 -14
  26. package/build/protos/opentelemetry/proto/collector/logs/v1/logs_service.proto +0 -45
  27. package/build/protos/opentelemetry/proto/collector/metrics/v1/metrics_service.proto +0 -45
  28. package/build/protos/opentelemetry/proto/collector/trace/v1/trace_service.proto +0 -45
  29. package/build/protos/opentelemetry/proto/common/v1/common.proto +0 -87
  30. package/build/protos/opentelemetry/proto/logs/v1/logs.proto +0 -222
  31. package/build/protos/opentelemetry/proto/metrics/v1/metrics.proto +0 -711
  32. package/build/protos/opentelemetry/proto/resource/v1/resource.proto +0 -36
  33. package/build/protos/opentelemetry/proto/trace/v1/trace.proto +0 -331
  34. package/build/protos/opentelemetry/proto/trace/v1/trace_config.proto +0 -78
@@ -1,36 +0,0 @@
1
- // Copyright 2019, OpenTelemetry Authors
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- syntax = "proto3";
16
-
17
- package opentelemetry.proto.resource.v1;
18
-
19
- import "opentelemetry/proto/common/v1/common.proto";
20
-
21
- option java_multiple_files = true;
22
- option java_package = "io.opentelemetry.proto.resource.v1";
23
- option java_outer_classname = "ResourceProto";
24
- option go_package = "go.opentelemetry.io/proto/otlp/resource/v1";
25
-
26
- // Resource information.
27
- message Resource {
28
- // Set of attributes that describe the resource.
29
- // Attribute keys MUST be unique (it is not allowed to have more than one
30
- // attribute with the same key).
31
- repeated opentelemetry.proto.common.v1.KeyValue attributes = 1;
32
-
33
- // dropped_attributes_count is the number of dropped attributes. If the value is 0, then
34
- // no attributes were dropped.
35
- uint32 dropped_attributes_count = 2;
36
- }
@@ -1,331 +0,0 @@
1
- // Copyright 2019, OpenTelemetry Authors
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- syntax = "proto3";
16
-
17
- package opentelemetry.proto.trace.v1;
18
-
19
- import "opentelemetry/proto/common/v1/common.proto";
20
- import "opentelemetry/proto/resource/v1/resource.proto";
21
-
22
- option java_multiple_files = true;
23
- option java_package = "io.opentelemetry.proto.trace.v1";
24
- option java_outer_classname = "TraceProto";
25
- option go_package = "go.opentelemetry.io/proto/otlp/trace/v1";
26
-
27
- // TracesData represents the traces data that can be stored in a persistent storage,
28
- // OR can be embedded by other protocols that transfer OTLP traces data but do
29
- // not implement the OTLP protocol.
30
- //
31
- // The main difference between this message and collector protocol is that
32
- // in this message there will not be any "control" or "metadata" specific to
33
- // OTLP protocol.
34
- //
35
- // When new fields are added into this message, the OTLP request MUST be updated
36
- // as well.
37
- message TracesData {
38
- // An array of ResourceSpans.
39
- // For data coming from a single resource this array will typically contain
40
- // one element. Intermediary nodes that receive data from multiple origins
41
- // typically batch the data before forwarding further and in that case this
42
- // array will contain multiple elements.
43
- repeated ResourceSpans resource_spans = 1;
44
- }
45
-
46
- // A collection of ScopeSpans from a Resource.
47
- message ResourceSpans {
48
- // The resource for the spans in this message.
49
- // If this field is not set then no resource info is known.
50
- opentelemetry.proto.resource.v1.Resource resource = 1;
51
-
52
- // A list of ScopeSpans that originate from a resource.
53
- repeated ScopeSpans scope_spans = 2;
54
-
55
- // A list of InstrumentationLibrarySpans that originate from a resource.
56
- // This field is deprecated and will be removed after grace period expires on June 15, 2022.
57
- //
58
- // During the grace period the following rules SHOULD be followed:
59
- //
60
- // For Binary Protobufs
61
- // ====================
62
- // Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
63
- // scope_spans SHOULD be set.
64
- //
65
- // Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
66
- // and scope_spans is not set then the value in instrumentation_library_spans
67
- // SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
68
- // If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
69
- //
70
- // For JSON
71
- // ========
72
- // JSON senders that set instrumentation_library_spans field MAY also set
73
- // scope_spans to carry the same spans, essentially double-publishing the same data.
74
- // Such double-publishing MAY be controlled by a user-settable option.
75
- // If double-publishing is not used then the senders SHOULD set scope_spans and
76
- // SHOULD NOT set instrumentation_library_spans.
77
- //
78
- // JSON receivers SHOULD check if instrumentation_library_spans is set and
79
- // scope_spans is not set then the value in instrumentation_library_spans
80
- // SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
81
- // If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
82
- repeated InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
83
-
84
- // This schema_url applies to the data in the "resource" field. It does not apply
85
- // to the data in the "scope_spans" field which have their own schema_url field.
86
- string schema_url = 3;
87
- }
88
-
89
- // A collection of Spans produced by an InstrumentationScope.
90
- message ScopeSpans {
91
- // The instrumentation scope information for the spans in this message.
92
- // Semantically when InstrumentationScope isn't set, it is equivalent with
93
- // an empty instrumentation scope name (unknown).
94
- opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
95
-
96
- // A list of Spans that originate from an instrumentation scope.
97
- repeated Span spans = 2;
98
-
99
- // This schema_url applies to all spans and span events in the "spans" field.
100
- string schema_url = 3;
101
- }
102
-
103
- // A collection of Spans produced by an InstrumentationLibrary.
104
- // InstrumentationLibrarySpans is wire-compatible with ScopeSpans for binary
105
- // Protobuf format.
106
- // This message is deprecated and will be removed on June 15, 2022.
107
- message InstrumentationLibrarySpans {
108
- option deprecated = true;
109
-
110
- // The instrumentation library information for the spans in this message.
111
- // Semantically when InstrumentationLibrary isn't set, it is equivalent with
112
- // an empty instrumentation library name (unknown).
113
- opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
114
-
115
- // A list of Spans that originate from an instrumentation library.
116
- repeated Span spans = 2;
117
-
118
- // This schema_url applies to all spans and span events in the "spans" field.
119
- string schema_url = 3;
120
- }
121
-
122
- // Span represents a single operation within a trace. Spans can be
123
- // nested to form a trace tree. Spans may also be linked to other spans
124
- // from the same or different trace and form graphs. Often, a trace
125
- // contains a root span that describes the end-to-end latency, and one
126
- // or more subspans for its sub-operations. A trace can also contain
127
- // multiple root spans, or none at all. Spans do not need to be
128
- // contiguous - there may be gaps or overlaps between spans in a trace.
129
- //
130
- // The next available field id is 17.
131
- message Span {
132
- // A unique identifier for a trace. All spans from the same trace share
133
- // the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes
134
- // is considered invalid.
135
- //
136
- // This field is semantically required. Receiver should generate new
137
- // random trace_id if empty or invalid trace_id was received.
138
- //
139
- // This field is required.
140
- bytes trace_id = 1;
141
-
142
- // A unique identifier for a span within a trace, assigned when the span
143
- // is created. The ID is an 8-byte array. An ID with all zeroes is considered
144
- // invalid.
145
- //
146
- // This field is semantically required. Receiver should generate new
147
- // random span_id if empty or invalid span_id was received.
148
- //
149
- // This field is required.
150
- bytes span_id = 2;
151
-
152
- // trace_state conveys information about request position in multiple distributed tracing graphs.
153
- // It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header
154
- // See also https://github.com/w3c/distributed-tracing for more details about this field.
155
- string trace_state = 3;
156
-
157
- // The `span_id` of this span's parent span. If this is a root span, then this
158
- // field must be empty. The ID is an 8-byte array.
159
- bytes parent_span_id = 4;
160
-
161
- // A description of the span's operation.
162
- //
163
- // For example, the name can be a qualified method name or a file name
164
- // and a line number where the operation is called. A best practice is to use
165
- // the same display name at the same call point in an application.
166
- // This makes it easier to correlate spans in different traces.
167
- //
168
- // This field is semantically required to be set to non-empty string.
169
- // Empty value is equivalent to an unknown span name.
170
- //
171
- // This field is required.
172
- string name = 5;
173
-
174
- // SpanKind is the type of span. Can be used to specify additional relationships between spans
175
- // in addition to a parent/child relationship.
176
- enum SpanKind {
177
- // Unspecified. Do NOT use as default.
178
- // Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED.
179
- SPAN_KIND_UNSPECIFIED = 0;
180
-
181
- // Indicates that the span represents an internal operation within an application,
182
- // as opposed to an operation happening at the boundaries. Default value.
183
- SPAN_KIND_INTERNAL = 1;
184
-
185
- // Indicates that the span covers server-side handling of an RPC or other
186
- // remote network request.
187
- SPAN_KIND_SERVER = 2;
188
-
189
- // Indicates that the span describes a request to some remote service.
190
- SPAN_KIND_CLIENT = 3;
191
-
192
- // Indicates that the span describes a producer sending a message to a broker.
193
- // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship
194
- // between producer and consumer spans. A PRODUCER span ends when the message was accepted
195
- // by the broker while the logical processing of the message might span a much longer time.
196
- SPAN_KIND_PRODUCER = 4;
197
-
198
- // Indicates that the span describes consumer receiving a message from a broker.
199
- // Like the PRODUCER kind, there is often no direct critical path latency relationship
200
- // between producer and consumer spans.
201
- SPAN_KIND_CONSUMER = 5;
202
- }
203
-
204
- // Distinguishes between spans generated in a particular context. For example,
205
- // two spans with the same name may be distinguished using `CLIENT` (caller)
206
- // and `SERVER` (callee) to identify queueing latency associated with the span.
207
- SpanKind kind = 6;
208
-
209
- // start_time_unix_nano is the start time of the span. On the client side, this is the time
210
- // kept by the local machine where the span execution starts. On the server side, this
211
- // is the time when the server's application handler starts running.
212
- // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
213
- //
214
- // This field is semantically required and it is expected that end_time >= start_time.
215
- fixed64 start_time_unix_nano = 7;
216
-
217
- // end_time_unix_nano is the end time of the span. On the client side, this is the time
218
- // kept by the local machine where the span execution ends. On the server side, this
219
- // is the time when the server application handler stops running.
220
- // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
221
- //
222
- // This field is semantically required and it is expected that end_time >= start_time.
223
- fixed64 end_time_unix_nano = 8;
224
-
225
- // attributes is a collection of key/value pairs. Note, global attributes
226
- // like server name can be set using the resource API. Examples of attributes:
227
- //
228
- // "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
229
- // "/http/server_latency": 300
230
- // "abc.com/myattribute": true
231
- // "abc.com/score": 10.239
232
- //
233
- // The OpenTelemetry API specification further restricts the allowed value types:
234
- // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/common.md#attributes
235
- // Attribute keys MUST be unique (it is not allowed to have more than one
236
- // attribute with the same key).
237
- repeated opentelemetry.proto.common.v1.KeyValue attributes = 9;
238
-
239
- // dropped_attributes_count is the number of attributes that were discarded. Attributes
240
- // can be discarded because their keys are too long or because there are too many
241
- // attributes. If this value is 0, then no attributes were dropped.
242
- uint32 dropped_attributes_count = 10;
243
-
244
- // Event is a time-stamped annotation of the span, consisting of user-supplied
245
- // text description and key-value pairs.
246
- message Event {
247
- // time_unix_nano is the time the event occurred.
248
- fixed64 time_unix_nano = 1;
249
-
250
- // name of the event.
251
- // This field is semantically required to be set to non-empty string.
252
- string name = 2;
253
-
254
- // attributes is a collection of attribute key/value pairs on the event.
255
- // Attribute keys MUST be unique (it is not allowed to have more than one
256
- // attribute with the same key).
257
- repeated opentelemetry.proto.common.v1.KeyValue attributes = 3;
258
-
259
- // dropped_attributes_count is the number of dropped attributes. If the value is 0,
260
- // then no attributes were dropped.
261
- uint32 dropped_attributes_count = 4;
262
- }
263
-
264
- // events is a collection of Event items.
265
- repeated Event events = 11;
266
-
267
- // dropped_events_count is the number of dropped events. If the value is 0, then no
268
- // events were dropped.
269
- uint32 dropped_events_count = 12;
270
-
271
- // A pointer from the current span to another span in the same trace or in a
272
- // different trace. For example, this can be used in batching operations,
273
- // where a single batch handler processes multiple requests from different
274
- // traces or when the handler receives a request from a different project.
275
- message Link {
276
- // A unique identifier of a trace that this linked span is part of. The ID is a
277
- // 16-byte array.
278
- bytes trace_id = 1;
279
-
280
- // A unique identifier for the linked span. The ID is an 8-byte array.
281
- bytes span_id = 2;
282
-
283
- // The trace_state associated with the link.
284
- string trace_state = 3;
285
-
286
- // attributes is a collection of attribute key/value pairs on the link.
287
- // Attribute keys MUST be unique (it is not allowed to have more than one
288
- // attribute with the same key).
289
- repeated opentelemetry.proto.common.v1.KeyValue attributes = 4;
290
-
291
- // dropped_attributes_count is the number of dropped attributes. If the value is 0,
292
- // then no attributes were dropped.
293
- uint32 dropped_attributes_count = 5;
294
- }
295
-
296
- // links is a collection of Links, which are references from this span to a span
297
- // in the same or different trace.
298
- repeated Link links = 13;
299
-
300
- // dropped_links_count is the number of dropped links after the maximum size was
301
- // enforced. If this value is 0, then no links were dropped.
302
- uint32 dropped_links_count = 14;
303
-
304
- // An optional final status for this span. Semantically when Status isn't set, it means
305
- // span's status code is unset, i.e. assume STATUS_CODE_UNSET (code = 0).
306
- Status status = 15;
307
- }
308
-
309
- // The Status type defines a logical error model that is suitable for different
310
- // programming environments, including REST APIs and RPC APIs.
311
- message Status {
312
- reserved 1;
313
-
314
- // A developer-facing human readable error message.
315
- string message = 2;
316
-
317
- // For the semantics of status codes see
318
- // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status
319
- enum StatusCode {
320
- // The default status.
321
- STATUS_CODE_UNSET = 0;
322
- // The Span has been validated by an Application developers or Operator to have
323
- // completed successfully.
324
- STATUS_CODE_OK = 1;
325
- // The Span contains an error.
326
- STATUS_CODE_ERROR = 2;
327
- };
328
-
329
- // The status code.
330
- StatusCode code = 3;
331
- }
@@ -1,78 +0,0 @@
1
- // Copyright 2019, OpenTelemetry Authors
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- syntax = "proto3";
16
-
17
- package opentelemetry.proto.trace.v1;
18
-
19
- option java_multiple_files = true;
20
- option java_package = "io.opentelemetry.proto.trace.v1";
21
- option java_outer_classname = "TraceConfigProto";
22
- option go_package = "go.opentelemetry.io/proto/otlp/collector/trace/v1";
23
-
24
- // Global configuration of the trace service. All fields must be specified, or
25
- // the default (zero) values will be used for each type.
26
- message TraceConfig {
27
-
28
- // The global default sampler used to make decisions on span sampling.
29
- oneof sampler {
30
- ConstantSampler constant_sampler = 1;
31
-
32
- TraceIdRatioBased trace_id_ratio_based = 2;
33
-
34
- RateLimitingSampler rate_limiting_sampler = 3;
35
- }
36
-
37
- // The global default max number of attributes per span.
38
- int64 max_number_of_attributes = 4;
39
-
40
- // The global default max number of annotation events per span.
41
- int64 max_number_of_timed_events= 5;
42
-
43
- // The global default max number of attributes per timed event.
44
- int64 max_number_of_attributes_per_timed_event = 6;
45
-
46
- // The global default max number of link entries per span.
47
- int64 max_number_of_links = 7;
48
-
49
- // The global default max number of attributes per span.
50
- int64 max_number_of_attributes_per_link = 8;
51
- }
52
-
53
- // Sampler that always makes a constant decision on span sampling.
54
- message ConstantSampler {
55
- // How spans should be sampled:
56
- // - Always off
57
- // - Always on
58
- // - Always follow the parent Span's decision (off if no parent).
59
- enum ConstantDecision {
60
- ALWAYS_OFF = 0;
61
- ALWAYS_ON = 1;
62
- ALWAYS_PARENT = 2;
63
- }
64
- ConstantDecision decision = 1;
65
- }
66
-
67
- // Sampler that tries to uniformly sample traces with a given ratio.
68
- // The ratio of sampling a trace is equal to that of the specified ratio.
69
- message TraceIdRatioBased {
70
- // The desired ratio of sampling. Must be within [0.0, 1.0].
71
- double samplingRatio = 1;
72
- }
73
-
74
- // Sampler that tries to sample with a rate per time window.
75
- message RateLimitingSampler {
76
- // Rate per second.
77
- int64 qps = 1;
78
- }