Skip to content

Commit

Permalink
Reduce sampling probability
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianZaremba committed Dec 17, 2024
1 parent 6e07227 commit 83c265c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func main() {
if configuration.Honey.Key != "" {
for k, v := range map[string]string{
"OTEL_TRACES_SAMPLER": "traceidratio",
"OTEL_TRACES_SAMPLER_ARG": "0.5",
"OTEL_RESOURCE_ATTRIBUTES": "SampleRate=2",
"OTEL_TRACES_SAMPLER_ARG": "0.25",
"OTEL_RESOURCE_ATTRIBUTES": "SampleRate=4",
} {
if err := os.Setenv(k, v); err != nil {
logrus.Warnf("failed to set sampling env var (%s -> %v): %s", k, v, err)
Expand Down

0 comments on commit 83c265c

Please sign in to comment.