= open_telemetry_collector
:type: tracer
:status: experimental



////
     THIS FILE IS AUTOGENERATED!

     To make changes, edit the corresponding source file under:

     https://github.com/redpanda-data/connect/tree/main/internal/impl/<provider>.

     And:

     https://github.com/redpanda-data/connect/tree/main/cmd/tools/docs_gen/templates/plugin.adoc.tmpl
////

// © 2024 Redpanda Data Inc.


component_type_dropdown::[]


Send tracing events to an https://opentelemetry.io/docs/collector/[Open Telemetry collector^].


[tabs]
======
Common::
+
--

```yml
# Common config fields, showing default values
tracer:
  open_telemetry_collector:
    http: [] # No default (required)
    grpc: [] # No default (required)
    sampling:
      enabled: false
      ratio: 0.85 # No default (optional)
```

--
Advanced::
+
--

```yml
# All config fields, showing default values
tracer:
  open_telemetry_collector:
    http: [] # No default (required)
    grpc: [] # No default (required)
    tags: {}
    sampling:
      enabled: false
      ratio: 0.85 # No default (optional)
```

--
======

== Fields

=== `http`

A list of http collectors.


*Type*: `array`


=== `http[].address`

The endpoint of a collector to send tracing events to.


*Type*: `string`


```yml
# Examples

address: localhost:4318
```

=== `http[].secure`

Connect to the collector over HTTPS


*Type*: `bool`

*Default*: `false`

=== `grpc`

A list of grpc collectors.


*Type*: `array`


=== `grpc[].address`

The endpoint of a collector to send tracing events to.


*Type*: `string`


```yml
# Examples

address: localhost:4317
```

=== `grpc[].secure`

Connect to the collector with client transport security


*Type*: `bool`

*Default*: `false`

=== `tags`

A map of tags to add to all tracing spans.


*Type*: `object`

*Default*: `{}`

=== `sampling`

Settings for trace sampling. Sampling is recommended for high-volume production workloads.


*Type*: `object`

Requires version 4.25.0 or newer

=== `sampling.enabled`

Whether to enable sampling.


*Type*: `bool`

*Default*: `false`

=== `sampling.ratio`

Sets the ratio of traces to sample.


*Type*: `float`


```yml
# Examples

ratio: 0.85

ratio: 0.5
```


