Skip to content

Send Logs from Pino Logger to Levitate via OpenTelemetry

Notifications You must be signed in to change notification settings

last9/pino-logs-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

How to send data to Levitate

  • Obtain OTLP Authroization header from Levitate dashboard.
  • Run following command:
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL='grpc' OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=otlp.last9.io:443 OTEL_EXPORTER_OTLP_HEADERS="Authorization=<HEADER>"  OTEL_RESOURCE_ATTRIBUTES="service.name=<SERVICE_NAME>,service.version=<SERVICE_VERSION>" node index.js

Replace the service name and service version with appropriate values.

About

Send Logs from Pino Logger to Levitate via OpenTelemetry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published