Commit a33363e
committed
fix: Address issues in OpenTelemetry audit exporter
HIGH:
- Fix test code compilation by using tuple indexing (.0, .1) for KeyValue
attributes instead of struct field access
- Add endpoint URL validation using url::Url::parse() with error context
- Add HTTPS validation warning for insecure HTTP endpoints
MEDIUM:
- Replace Mutex with RwLock for logger_provider since emit() only requires
read access, improving concurrent performance
- Add TLS requirements documentation in endpoint parameter docs
- Convert all synchronous tests to async with #[tokio::test] to satisfy
gRPC client initialization requirements
Dependencies:
- Add url crate 2.5 for URL parsing and validation1 parent 5f104ce commit a33363e
3 files changed
Lines changed: 329 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
0 commit comments