Closed lboynton closed 1 year ago
Yeah, that is certainly an issue then. It shouldn't be trying to initialise the OTLPExporter ofc. I'll take a look once I wrapped up the sampling stuff. I am soo close on that :)
Could you give 1.0.0-alpha.6
a go? I just released it and I technically got it to work. The only issues seems to be that the ConsoleSpanExporter uses console.dir
, which I don't think isn't as well supported in workerd
?
If that is indeed the case with you as well, I'll probably end up writing a proper console exporter a bit later..
Yep this is working with the latest version now (1.0.0-rc.1
), thanks! 🙏
As briefly discussed on Discord, I was hoping to be able to conditionally use the
ConsoleSpanExporter
in local development and not send traces to an external source. It seems like this should be possible sinceExportConfig
allows you to pass in aSpanExporter
instance here, but doing the following:Results in this error: