Debian Codegraph @

internal/shared/otlp/otlptrace/otlpconfig/optiontypes.go.tmpl

raw
1 // Code generated by gotmpl. DO NOT MODIFY.
2 // source: internal/shared/otlp/otlptrace/otlpconfig/optiontypes.go.tmpl
3
4 // Copyright The OpenTelemetry Authors
5 // SPDX-License-Identifier: Apache-2.0
6
7 package otlpconfig
8
9 const (
10 // DefaultCollectorGRPCPort is the default gRPC port of the collector.
11 DefaultCollectorGRPCPort uint16 = 4317
12 // DefaultCollectorHTTPPort is the default HTTP port of the collector.
13 DefaultCollectorHTTPPort uint16 = 4318
14 // DefaultCollectorHost is the host address the Exporter will attempt
15 // connect to if no collector address is provided.
16 DefaultCollectorHost string = "localhost"
17 )
18
19 // Compression describes the compression used for payloads sent to the
20 // collector.
21 type Compression int
22
23 const (
24 // NoCompression tells the driver to send payloads without
25 // compression.
26 NoCompression Compression = iota
27 // GzipCompression tells the driver to send payloads after
28 // compressing them with gzip.
29 GzipCompression
30 )
31
32 // Marshaler describes the kind of message format sent to the collector.
33 type Marshaler int
34
35 const (
36 // MarshalProto tells the driver to send using the protobuf binary format.
37 MarshalProto Marshaler = iota
38 // MarshalJSON tells the driver to send using json format.
39 MarshalJSON
40 )