You can use trace metadata to correlate traces with log events and explore logs in Observability Cloud.įor more information, see Correlating traces with logs. The Splunk Distribution of OpenTelemetry JS automatically injects trace metadata into logs so that Node.js logging libraries can access it. Then you can automatically instrument your application by running node -r index.js You can use the -r CLI flag to preload the instrumentation module and automatically instrument your Node.js application.įor example, if you normally started your application as follows: node index.js Set the SPLUNK_ACCESS_TOKEN to your Splunk Observability Cloud access token.Set OTEL_TRACES_EXPORTER to "jaeger-thrift-splunk" to use the Jaeger exporter. In order to send traces directly to Splunk Observability Cloud, you need to: Send data directly to Splunk Observability Cloud Npm 7+ supports optional peer dependencies feature and will not complainĪbout this. You can install the ones you need and ignore the rest. All of these dependencies are instrumentation packages and areĬompletely optional. Note: If you are using npm 6 or older, it'll warn you about missing peerĭependencies. You can also instrument your app programmatically as described here. That's it - the telemetry data is now sent to the locally running Opentelemetry Collector. To install packages in addition to the default ones, see Plugins. You can find a list of instrumentation packages supported out of the box here. Install the instrumentation packages for your library or framework:.If you're running a different setup, refer to the configuration options to customize your settings. The following instructions assume that you're sending data to Splunk Observability Cloud using the OpenTelemetry Collector running on localhost. If you're currently using the SignalFx Tracing Library for Node and want to migrate to the Splunk Distribution of OpenTelemetry Node, see Migrate from the SignalFx Tracing Library for JS. Unlimited default limits for configuration options to.W3C tracecontext and baggage propagation.Ĭonfigured to send spans to a locally running OpenTelemetry Collector over gRPC.This Splunk distribution comes with the following defaults: The Splunk Distribution of OpenTelemetry JS automatically instruments your Node application to capture and report distributed traces to Splunk APM. Splunk Distribution of OpenTelemetry for Node.js
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |