example

command module
v0.0.0-...-e90cf59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

README

Example

This package shows how the otlpr logger operates.

Running

From this directory run the OpenTelemetry collector so it can receive the log messages the example application generates.

docker run --name otel-collector -d -p "4317:4317" -v $(pwd)/config.yaml:/etc/otelcol/config.yaml otel/opentelemetry-collector

Next, generate logs by running the application.

go run . -target="127.0.0.1:4317"

The collector logs should contain the generated log messages. Check using the docker utility.

docker logs otel-collector

Stopping

docker stop otel-collector
docker rm otel-collector

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL