I've followed the guide at https://backstage.io/docs/tutorials/setup-opentelemetry/ for setting up OpenTelemetry for Backstage on my local machine. That guidance doesn't include any logs, so I've tried adding that based on other OTel + NodeJS examples, but now I'm getting an error "TypeError: exporter.export is not a function". Any ideas?
#Export logs with OpenTelemetry
2 messages · Page 1 of 1 (latest)
Hi @spare grove, haven't seen anyone do this yet, I'm sure people have though. Personally the path I would take is to use the Otel transport for winston - https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/winston-transport#readme. Some docs on this are here: https://backstage.io/docs/backend-system/core-services/root-logger#overriding-the-default-implementation. The down side is that you now own the entire implementation so any new features that get added you have to port over.