Open ivothgle opened 3 weeks ago
OpenTelemetry Collector 中获取 token hander 的相关代码 https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/extension/bearertokenauthextension/bearertokenauth.go#L187
otlpgrpc
和 OpenTelemetry Collector
俩个不同的处理,OpenTelemetry Collector 需要自己单独处理一下
建议参考自定义一个 OpenTelemetry client。 https://github.com/gogf/gf/blob/master/example/trace/provider/grpc/main.go
@houseme 我知道可以自己实现,但我更希望至少在文档上说明清楚,避免后续的人踩同样的坑
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@houseme I know I can implement it myself, but I would rather at least explain it clearly in the documentation to avoid subsequent people falling into the same trap.
@houseme 我知道可以自己实现,但我更希望至少在文档上说明清楚,避免后续的人踩同样的坑
辛苦您补充一下文档内容,感谢🙏
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@houseme I know I can implement it myself, but I would rather at least explain it clearly in the documentation to avoid subsequent people falling into the same trap.
Could you please add the content of the document, thank you🙏
Go version
go1.20
GoFrame version
2.7.0
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
github.com/gogf/gf/contrib/trace/otlpgrpc/v2
上传数据到 OpenTelemetry Collector,receivers: otlp: protocols: grpc: auth: authenticator: bearertokenauth ...
otlpgrpc.Init(serviceName, ""localhost:4317"), "Bearer your-secret-token")