File tree 2 files changed +25
-1
lines changed
content/en/docs/languages/go
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: Exporters
3
3
aliases : [exporting_data]
4
4
weight : 50
5
5
# prettier-ignore
6
- cSpell:ignore : otlplog otlploghttp otlpmetric otlpmetricgrpc otlpmetrichttp otlptrace otlptracegrpc otlptracehttp promhttp stdoutlog stdouttrace
6
+ cSpell:ignore : otlplog otlploggrpc otlploghttp otlpmetric otlpmetricgrpc otlpmetrichttp otlptrace otlptracegrpc otlptracehttp promhttp stdoutlog stdouttrace
7
7
---
8
8
9
9
{{% docs/languages/exporters/intro go %}}
@@ -222,3 +222,23 @@ func newExporter(ctx context.Context) (log.Exporter, error) {
222
222
return otlploghttp.New (ctx)
223
223
}
224
224
```
225
+
226
+ ### OTLP logs over gRPC (Experimental)
227
+
228
+ [ ` go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc ` ] ( https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc )
229
+ contains an implementation of OTLP logs exporter using gRPC.
230
+
231
+ Here's how you can create an exporter with default configuration:
232
+
233
+ ``` go
234
+ import (
235
+ " context"
236
+
237
+ " go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc"
238
+ " go.opentelemetry.io/otel/sdk/log"
239
+ )
240
+
241
+ func newExporter (ctx context .Context ) (log .Exporter , error ) {
242
+ return otlploggrpc.New (ctx)
243
+ }
244
+ ```
Original file line number Diff line number Diff line change 8167
8167
"StatusCode" : 200 ,
8168
8168
"LastSeen" : " 2024-01-18T19:10:29.862565-05:00"
8169
8169
},
8170
+ "https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc" : {
8171
+ "StatusCode" : 200 ,
8172
+ "LastSeen" : " 2024-08-26T18:58:45.152084327Z"
8173
+ },
8170
8174
"https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp" : {
8171
8175
"StatusCode" : 200 ,
8172
8176
"LastSeen" : " 2024-04-25T07:21:16.712986-07:00"
You can’t perform that action at this time.
0 commit comments