Closed object closed 2 years ago
Hi @object - the new Phobos 2.0 binaries should support this without using the shim.
An example from the OTel branch of https://github.com/petabridge/Petabridge.Phobos.Web/tree/otel
Configure OTel itself:
Consume in Phobos:
We are probably going to be able to get rid of the PhobosSetup
to some extent as we continue working on Phobos 2.0 - but you don't need any of the OpenTracing shims with this.
Thank you. So I need to upgrade to Phobos 2.0, right? What is the state of the 2.0 version? Do you recommend upgrading now or there is some remaining work to be done?
Phobos 2.0 is a mature beta - all of the big stuff on the tracing side has been figured out; still have some outstanding issues around metrics (mailbox depth is the only real question mark there, since OTel doesn't have a performant stand-alone Gauge structure), and we're working on chasing down some bugs related to trace correlation. You can follow our progress here https://github.com/petabridge/phobos-issues/milestone/8
We've been promising our sales guy that we'll have Phobos 2.0 code-complete by end of March - we can't get it all the way out of an RC state because OpenTelemetry itself is also in RC, but that's the rough deadline.
Thank you very much for a quick reponse. I will look into Phobos 2.0.
No problem - we also don't have any built-in Phobos dashboards for Phobos 2.0 other than Prometheus, FYI. We're waiting until we get the metrics piece universally resolved before we embark on that.
We have been using Phobos with OpenTelemetry where trace exporter is typically configured like this (in F#):
The ITracer object is then passed to Phobos bootstrapper.
This is not how OpenTelemetry exporters are configured in .NET 6, here's a new sampe code (in C#):
I've found this post that suggests using TracerShim from OpenTelemetry.Shims.OpenTracing, and this workaround works. However it would be great if Phobos supported OpenTelemetry DI out of the box, without using TracerShim.