-
Notifications
You must be signed in to change notification settings - Fork 199
Revisit logging to enhance observability #312
Comments
Current ecosystem support for OpenTelemetry + Application Insights: RustNo first-party OpenTelemetry/App Insights support here, even at the Preview level. There is a third-party Application Insights exporter for the All together, we can use I don't yet see an off-the-shelf mechanism for Custom Events, but it seems like it'd be easy to add. We could also have a separate telemetry channel that uses the PythonFirst-party support, but only in preview. May get some wins if we focus on spans (without events), or use libraries that are getting early attention for pervasive OpenTelemetry instrumentation (FastAPI?). We can use OpenTelemetry with Python via |
Confirmed, this was very easy to add to the exporter backend. The design question then becomes: how do we determine when a span-parented In the long run, OpenTelemetry Logging will make the "event"/"log message" distinction clear in a way that tracing libraries can propagate in a more principled way. In the short term, we wouldn't be any worse off than we already are (most telemetry would become "trace event" items). Exceptions are special-cased in the Rust backend. Also, Custom Events are not displayed in a nicer way in the Transaction Timeline view of Application Insights, nor are they in any way more queryable than Trace Events. For our "Custom Events" that are more properly treated as metric data, there is a (now-frozen) OpenTelemetry Metrics API that has feature-flagged support in the Rust Application Insights exporter. |
Revisit our logging, and move to a model that allows:
stderr
, controlled by an env varSince we use
tokio
, thetracing
library with an OpenTelemetry backend would achieve all of the above.AB#36002
The text was updated successfully, but these errors were encountered: