ttrss/vendor/open-telemetry/exporter-otlp
Andrew Dolgov cdd7ad020e
jaeger-client -> opentelemetry
2023-10-20 21:13:39 +03:00
..
AttributesConverter.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
ContentTypes.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
HttpEndpointResolver.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
HttpEndpointResolverInterface.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
LogsConverter.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
LogsExporter.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
LogsExporterFactory.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
MetricConverter.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
MetricExporter.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
MetricExporterFactory.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
OtlpHttpTransportFactory.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
OtlpUtil.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
ProtobufSerializer.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
Protocols.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
README.md jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
SpanConverter.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
SpanExporter.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
SpanExporterFactory.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
_register.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
composer.json jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00

README.md

Releases Source Mirror Latest Version Stable

OpenTelemetry OTLP exporter

Documentation

https://opentelemetry.io/docs/instrumentation/php/exporters/#otlp

Usage

See https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/traces/exporters/otlp_http.php

Http transport

$transport = (new \OpenTelemetry\Contrib\Otlp\OtlpHttpTransportFactory())->create('http://collector:4318');
$exporter = new \OpenTelemetry\Contrib\Otlp\SpanExporter($transport);

gRPC transport

To export over gRPC, you will need to additionally install the open-telemetry/transport-grpc package.

Protobuf Runtime library

OTLP exporting requires a protobuf implementation.

The open-telemetry/gen-otlp-protobuf requires the google/protobuf native implementation. It's fine for development, but not recommended for production usage.

The recommended option for production is to install the Protobuf C extension for PHP. The extension makes exporting significantly more performant. This can be easily installed with the following command:

pecl install protobuf

Contributing

This repository is a read-only git subtree split. To contribute, please see the main OpenTelemetry PHP monorepo.