You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/adr/001_error_handling.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@
4
4
5
5
## Summary
6
6
7
-
This ADR describes the general pattern we will follow when modelling errors in public API interfaces - that is, APIs that are exposed to users of the project's published crates. It summarises the discussion and final option from [#2571](https://github.com/open-telemetry/opentelemetry-rust/issues/2571); for more context check out that issue.
7
+
This ADR describes the general pattern we will follow when modelling errors in public API interfaces - that is, APIs that are exposed to users of the project's published crates. It summarizes the discussion and final option from [#2571](https://github.com/open-telemetry/opentelemetry-rust/issues/2571); for more context check out that issue.
8
8
9
9
We will focus on the exporter traits in this example, but the outcome should be applied to _all_ public traits and their fallible operations.
10
10
11
11
These include [SpanExporter](https://github.com/open-telemetry/opentelemetry-rust/blob/eca1ce87084c39667061281e662d5edb9a002882/opentelemetry-sdk/src/trace/export.rs#L18), [LogExporter](https://github.com/open-telemetry/opentelemetry-rust/blob/eca1ce87084c39667061281e662d5edb9a002882/opentelemetry-sdk/src/logs/export.rs#L115), and [PushMetricExporter](https://github.com/open-telemetry/opentelemetry-rust/blob/eca1ce87084c39667061281e662d5edb9a002882/opentelemetry-sdk/src/metrics/exporter.rs#L11) which form part of the API surface of `opentelemetry-sdk`.
12
12
13
-
There are various ways to handle errors on trait methods, including swallowing them and logging, panicing, returning a shared global error, or returning a method-specific error. We strive for consistency, and we want to be sure that we've put enough thought into what this looks like that we don't have to make breaking interface changes unecessarily in the future.
13
+
There are various ways to handle errors on trait methods, including swallowing them and logging, panicking, returning a shared global error, or returning a method-specific error. We strive for consistency, and we want to be sure that we've put enough thought into what this looks like that we don't have to make breaking interface changes unnecessarily in the future.
14
14
15
15
## Design Guidance
16
16
@@ -69,7 +69,7 @@ trait MyTrait {
69
69
70
70
## 3. Consolidate error types between signals where we can, let them diverge where we can't
71
71
72
-
Consider the `Exporter`s mentioned earlier. Each of them has the same failure indicators - as dicated by the OpenTelemetry spec - and we will
72
+
Consider the `Exporter`s mentioned earlier. Each of them has the same failure indicators - as dictated by the OpenTelemetry spec - and we will
73
73
share the error types accordingly:
74
74
75
75
**Don't do this** - each signal has its own error type, despite having exactly the same failure cases:
Copy file name to clipboardExpand all lines: opentelemetry-http/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ Released 2024-Sep-30
53
53
54
54
## v0.12.0
55
55
56
-
- Add `reqwest-rustls-webkpi-roots` feature flag to configure [`reqwest`](https://docs.rs/reqwest/0.11.27/reqwest/index.html#optional-features) to use embedded `webkpi-roots`.
56
+
- Add `reqwest-rustls-webpki-roots` feature flag to configure [`reqwest`](https://docs.rs/reqwest/0.11.27/reqwest/index.html#optional-features) to use embedded `webpki-roots`.
57
57
- Update `opentelemetry` dependency version to 0.23
Copy file name to clipboardExpand all lines: opentelemetry-otlp/CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Released 2025-Mar-21
27
27
- Update `opentelemetry-http` dependency version to 0.29
28
28
- Update `opentelemetry-proto` dependency version to 0.29
29
29
30
-
- The `OTEL_EXPORTER_OTLP_TIMEOUT`, `OTEL_EXPORTER_OTLP_TRACES_TIMEOUT`, `OTEL_EXPORTER_OTLP_METRICS_TIMEOUT` and `OTEL_EXPORTER_OTLP_LOGS_TIMEOUT` are changed from seconds to miliseconds.
30
+
- The `OTEL_EXPORTER_OTLP_TIMEOUT`, `OTEL_EXPORTER_OTLP_TRACES_TIMEOUT`, `OTEL_EXPORTER_OTLP_METRICS_TIMEOUT` and `OTEL_EXPORTER_OTLP_LOGS_TIMEOUT` are changed from seconds to milliseconds.
31
31
- Fixed `.with_headers()` in `HttpExporterBuilder` to correctly support multiple key/value pairs. [#2699](https://github.com/open-telemetry/opentelemetry-rust/pull/2699)
Copy file name to clipboardExpand all lines: opentelemetry/CHANGELOG.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ predictable and efficient observability pipelines.
35
35
36
36
Release 2025-Apr-01
37
37
38
-
- Bug Fix: Re-export `WithContext` at `opentelemetry::trace::context::WithContext`[#2879](https://github.com/open-telemetry/opentelemetry-rust/pull/2879) to restore backwards compatability
38
+
- Bug Fix: Re-export `WithContext` at `opentelemetry::trace::context::WithContext`[#2879](https://github.com/open-telemetry/opentelemetry-rust/pull/2879) to restore backwards compatibility
39
39
- The new path for `WithContext` and `FutureExt` are in `opentelemetry::context` as they are independent of the trace signal. Users should prefer this path.
40
40
41
41
## 0.29.0
@@ -504,7 +504,7 @@ and SDK are still unstable.
504
504
- Use current span for SDK-less context propagation #510
505
505
- Always export span batch when limit reached #519
506
506
- Rename message events to events #530
507
-
- Update resource merge behaviour#537
507
+
- Update resource merge behavior#537
508
508
- Ignore links with invalid context #538
509
509
510
510
## Removed
@@ -529,7 +529,7 @@ use `opentelemetry::global::shutdown_tracer_provider` explicitly instead.
529
529
530
530
## Changed
531
531
532
-
- Pull configrations from environment variables by default when creating BatchSpanProcessor #445
532
+
- Pull configurations from environment variables by default when creating BatchSpanProcessor #445
533
533
- Convert doc links to intra-doc #466
534
534
- Switch to Cow for event names #471
535
535
- Use API to configure async runtime instead of features #481
@@ -826,7 +826,7 @@ use `opentelemetry::global::shutdown_tracer_provider` explicitly instead.
0 commit comments