Skip to content

Commit

Permalink
add zipkin feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jan 14, 2024
1 parent 4481082 commit 754f283
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ rstest = "0.18"
[features]
full = ["integration_test"]
default = ["otlp", "jaeger", "axum", "integration_test"]
jaeger = ["dep:opentelemetry-jaeger", "tracer"]
jaeger = ["dep:opentelemetry-jaeger", "tracer", "zipkin"]
zipkin = []
otlp = ["opentelemetry-otlp/http-proto", "tracer"]
tracer = ["dep:opentelemetry-semantic-conventions"]
integration_test = ["dep:serde", "dep:serde_json", "dep:opentelemetry_api", "dep:rand", "dep:hyper", "dep:http-body-util"]
Expand Down
4 changes: 2 additions & 2 deletions src/otlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ where

/// turn a string of "k1=v1,k2=v2,..." into an iterator of (key, value) tuples
fn parse_headers(val: &str) -> impl Iterator<Item = (String, String)> + '_ {
val.split(",").filter_map(|kv| {
val.split(',').filter_map(|kv| {
let s = kv
.split_once("=")
.split_once('=')
.map(|(k, v)| (k.to_owned(), v.to_owned()));
s
})
Expand Down

0 comments on commit 754f283

Please sign in to comment.