Skip to content

Commit 9aae5b4

Browse files
committed
Added a span feature which enables storing spans in events
1 parent 221b57d commit 9aae5b4

File tree

11 files changed

+630
-127
lines changed

11 files changed

+630
-127
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ jobs:
6363
env:
6464
LLVM_PROFILE_FILE: coverage/serialize-escape-html-%p-%m.profraw
6565
run: cargo test --features serialize,escape-html
66+
- name: Run tests (serialize+span)
67+
env:
68+
LLVM_PROFILE_FILE: coverage/serialize-span-%p-%m.profraw
69+
run: cargo test --features serialize,span
6670
- name: Run tests (all features)
6771
env:
6872
LLVM_PROFILE_FILE: coverage/all-features-%p-%m.profraw

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ serde-types = ["serde/derive"]
180180
## If you need that, use the `serde-types` feature.
181181
serialize = ["serde"] # "dep:" prefix only avalible from Rust 1.60
182182

183+
## Enables gathering spans in events, which can slowdown parser a bit and increase
184+
## memory consumption for events
185+
span = []
186+
183187
[package.metadata.docs.rs]
184188
# document all features
185189
all-features = true

0 commit comments

Comments
 (0)