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

Resource attributes separated from Scope attributes

未关闭
#24 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Go
星标
47
派生
15
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。