Go logs installation
Logs is in beta
Logs is free to use whilst in beta, though we'd love to hear your feedback in app.
- 1
Install OpenTelemetry packages
RequiredTerminal - 2
Get your project token
RequiredYou'll need your PostHog project token to authenticate log requests. This is the same token you use for capturing events and exceptions.
You can find your project token in Project Settings.
- 3
Configure the SDK
RequiredSet up the OpenTelemetry SDK to send logs to PostHog.
GoAlternatively, you can pass the token as a query parameter by modifying the URL path:
Go - 4
Use OpenTelemetry logging
RequiredNow you can start logging with OpenTelemetry:
Go - 5
Next steps
CheckpointWhat you can do with your logs