agoda-com / agoda-com/opentelemetry-logs-go

Resource attributes separated from Scope attributes

Đang mở
#24 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Go
Star
47
Fork
15
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Follow up for https://github.com/agoda-com/opentelemetry-logs-go/pull/21

# Bug report

## Describe the bug

During log transformation Logger/Exporter Resource Attributes should be as resource attributes and log attributes from instrumentation should be exported as scope attributes

Currently both exporter resource and logger instrumentation resources [merged](https://github.com/coroot/opentelemetry-logs-go/blob/be9c59fab4e63cfbafb0606e7ead4ca8e02bc37b/sdk/logs/logger.go#L43) as scope resources and exported as [Resource Logs](https://github.com/agoda-com/opentelemetry-logs-go/blob/master/exporters/otlp/otlplogs/internal/logstransform/logs.go#L48), however [Exporter](https://github.com/agoda-com/opentelemetry-logs-go/blob/master/exporters/otlp/otlplogs/exporter.go#L77) don't have information about [LoggerProvider](https://github.com/agoda-com/opentelemetry-logs-go/blob/master/sdk/logs/provider.go#L105) resources to separate ResourceLogs from ScopeResources.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.