Skip to content

Commit 7cb9b3c

Browse files
committed
update
1 parent b81d83e commit 7cb9b3c

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

config/charts/inferencepool/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,20 @@ These are the options available to you with `provider.name` set to `istio`:
216216
| `istio.destinationRule.host` | Custom host value for the destination rule. If not set this will use the default value which is derrived from the epp service name and release namespace to gerenate a valid service address. |
217217
| `istio.destinationRule.trafficPolicy.connectionPool` | Configure the connectionPool level settings of the traffic policy |
218218

219-
## OpenTelemetry
219+
#### OpenTelemetry
220220

221-
The EndpointPicker supports OpenTelemetry-based tracing. To enable it, use `--set inferenceExtension.tracing.enabled=true`
222-
and configure the correct OpenTelemetry collector endpoint via `--set inferenceExtension.tracing.otelExporterEndpoint`.
221+
The EndpointPicker supports OpenTelemetry-based tracing. To enable trace collection, use the following configuration:
222+
```yaml
223+
inferenceExtension:
224+
tracing:
225+
enabled: true
226+
otelExporterEndpoint: "http://localhost:4317"
227+
sampling:
228+
sampler: "parentbased_traceidratio"
229+
samplerArg: "0.1"
230+
```
231+
Make sure that the `otelExporterEndpoint` points to your OpenTelemetry collector endpoint.
232+
Current only the `parentbased_traceidratio` sampler is supported. You can adjust the base sampling rate using the `samplerArg` (e.g., 0.1 means 10% of traces will be sampled).
223233

224234
## Notes
225235

pkg/common/telemetry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func InitTracing(ctx context.Context, logger logr.Logger) error {
6060
traceExporter, err := initTraceExporter(ctx, logger)
6161
if err != nil {
6262
loggerWrap.Handle(fmt.Errorf("%s: %v", "init trace exporter fail", err))
63-
return nil
63+
return err
6464
}
6565

6666
// Go SDK doesn't have an automatic sampler, handle manually

0 commit comments

Comments
 (0)