WithAdditionalCommonDimensions allows setting additional common dimensions that will be included with every telemetry event recorded by the service.
(dimensions ghtelemetry.Dimensions)
| 153 | |
| 154 | // WithAdditionalCommonDimensions allows setting additional common dimensions that will be included with every telemetry event recorded by the service. |
| 155 | func WithAdditionalCommonDimensions(dimensions ghtelemetry.Dimensions) telemetryServiceOption { |
| 156 | return func(s *telemetryServiceOpts) { |
| 157 | maps.Copy(s.additionalDimensions, dimensions) |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | // WithSampleRate allows setting a sample rate (0-100) for telemetry events. Events recorded with the Unsampled option will be sent regardless of the sample rate. |
| 162 | // Sampling is based on invocation ID, so an entire invocation will be included or excluded as a whole. This ensures that related events are not split between sampled and unsampled, |