gateway icon indicating copy to clipboard operation
gateway copied to clipboard

Support OTEL over HTTP for Access Logs

Open arkodg opened this issue 1 year ago • 10 comments

          @zirain any plans on doing otel over http?

writing a grpc service just to get the access log looks like overkill to me...

Originally posted by @pkit in https://github.com/envoyproxy/gateway/issues/701#issuecomment-2116284807

arkodg avatar May 16 '24 22:05 arkodg

In most of the cases, otel-collector is the best choice as a backend/transit.

zirain avatar May 23 '24 02:05 zirain

Maybe I can try this working!

ShyunnY avatar May 24 '24 15:05 ShyunnY

In most of the cases, otel-collector is the best choice as a backend/transit.

Do you mean I need to fork the collector, create custom backend, compile, build, deploy, etc.?

pkit avatar May 24 '24 15:05 pkit

otel-collector support both http and grpc, see the configuration here, you can use it as intermediary agent send to other exporters(e.g. another otel backend but http protocol).

zirain avatar May 24 '24 15:05 zirain

Yeah. Ok. Thanks.

pkit avatar May 24 '24 15:05 pkit

When I looked through the documentation, it seems that the configuration in OpenTelemetryAccessLogConfig.common_config does not support us to choose HTTP protocol for export. ref

ShyunnY avatar Jun 16 '24 07:06 ShyunnY

You can extend it to support HTTP, just as OpenTelemetry tracer do.

zirain avatar Jun 16 '24 08:06 zirain

您可以扩展它以支持 HTTP,就像 OpenTelemetry 跟踪器一样。

I started working on this and I don't quite understand it. Do we need to enhance and extend this in Envoy?

ShyunnY avatar Jun 22 '24 07:06 ShyunnY

您可以扩展它以支持 HTTP,就像 OpenTelemetry 跟踪器一样。

I started working on this and I don't quite understand it. Do we need to enhance and extend this in Envoy?

bingo!

zirain avatar Jun 22 '24 07:06 zirain

您可以扩展它以支持 HTTP,就像 OpenTelemetry 跟踪器一样。

I started working on this and I don't quite understand it. Do we need to enhance and extend this in Envoy?

bingo!

This seems to be a challenge for me, because I am not familiar with cpp and find it difficult to see this activity.

ShyunnY avatar Jun 22 '24 07:06 ShyunnY

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

github-actions[bot] avatar Jul 24 '24 04:07 github-actions[bot]