-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
108 lines (94 loc) · 2.77 KB
/
Cargo.toml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[package]
categories = ["api-bindings"]
description = "OpenTelemetry v1 API binding based on tonic/prost."
documentation = "https://github.com/tremor-rs/otelapis"
edition = "2021"
exclude = ["*.sh"]
keywords = ["opentelemetry", "api", "grpc", "protobuf", "tremor"]
license = "Apache-2.0"
name = "tremor-otelapis"
readme = "README.md"
repository = "https://github.com/tremor-rs/tremor-otelapis"
version = "0.5.0"
authors = ["The Tremor Team"]
[lib]
doctest = false
[package.metadata.docs.rs]
all-features = true
[dependencies]
prost = { version = "0.13", default-features = false, features = [
"std",
"derive",
] }
tokio = { version = "1.40.0", optional = true, default-features = false, features = [
"sync",
] }
tonic = { version = "0.12", default-features = false, features = [
"transport",
"codegen",
"prost",
] }
[build-dependencies]
tonic-build = { version = "0.12" }
[features]
# Default - all
default = ["otel-all", "gzip", "zstd", "tls"]
# Enable channel abstraction
channels = ["dep:tokio"]
# Enable gzip compression support
gzip = ["tonic/gzip"]
# Enable zstd compression support
zstd = ["tonic/zstd"]
# Enable tls support
tls = ["tonic/tls", "tonic/tls-webpki-roots"]
# Generated from .proto definitions
opentelemetry-proto-collector-logs-v1 = []
opentelemetry-proto-collector-metrics-v1 = []
opentelemetry-proto-collector-trace-v1 = []
opentelemetry-proto-common-v1 = []
opentelemetry-proto-logs-v1 = []
opentelemetry-proto-metrics-v1 = []
opentelemetry-proto-resource-v1 = []
opentelemetry-proto-trace-v1 = []
# Convenience
otel-gen = [
"opentelemetry-proto-resource-v1",
"opentelemetry-proto-common-v1",
"opentelemetry-proto-logs-v1",
"opentelemetry-proto-collector-logs-v1",
"opentelemetry-proto-metrics-v1",
"opentelemetry-proto-trace-v1",
"opentelemetry-proto-collector-metrics-v1",
"opentelemetry-proto-collector-trace-v1",
]
otel-all = [
"otel-logs",
"otel-metrics",
"otel-trace",
"opentelemetry-proto-resource-v1",
"opentelemetry-proto-common-v1",
"opentelemetry-proto-logs-v1",
"opentelemetry-proto-collector-logs-v1",
"opentelemetry-proto-metrics-v1",
"opentelemetry-proto-trace-v1",
"opentelemetry-proto-collector-metrics-v1",
"opentelemetry-proto-collector-trace-v1",
]
otel-logs = [
"opentelemetry-proto-resource-v1",
"opentelemetry-proto-common-v1",
"opentelemetry-proto-logs-v1",
"opentelemetry-proto-collector-logs-v1",
]
otel-metrics = [
"opentelemetry-proto-resource-v1",
"opentelemetry-proto-common-v1",
"opentelemetry-proto-metrics-v1",
"opentelemetry-proto-collector-metrics-v1",
]
otel-trace = [
"opentelemetry-proto-resource-v1",
"opentelemetry-proto-common-v1",
"opentelemetry-proto-trace-v1",
"opentelemetry-proto-collector-trace-v1",
]