WithSampleRate sets the trace sampling rate (must be between 0 and 1).
func WithSampleRate(rate float64) OptionWithSampleRate sets the trace sampling rate (must be between 0 and 1). Overrides the LANGSMITH_TRACING_SAMPLING_RATE env var. Out-of-range values are clamped with a warning log.
| Name | Type | Description |
|---|---|---|
rate* | float64 |