stanbic-open-telemetry/exporter-otlp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stanbic-open-telemetry/exporter-otlp

最新稳定版本:2.0.0

Composer 安装命令:

composer require stanbic-open-telemetry/exporter-otlp

包简介

OTLP exporter for OpenTelemetry.

README 文档

README

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', 'application/json');
$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.

统计信息

  • 总下载量: 29
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2024-11-07