Skip to content

Commit

Permalink
Merge pull request #83 from frigus02/log-sample-rate
Browse files Browse the repository at this point in the history
Remove sample rate from log messages
  • Loading branch information
frigus02 authored Jul 20, 2024
2 parents 02d8ac4 + ac7d69a commit 4d14d02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl<C> Exporter<C> {
.unwrap_or_else(SystemTime::now),
)
.into(),
sample_rate: Some(self.sample_rate),
sample_rate: None,
i_key: Some(self.instrumentation_key.clone().into()),
tags: Some(get_tags_for_log(&log, &self.resource)),
data: Some(data),
Expand Down
5 changes: 0 additions & 5 deletions tests/snapshots/http_requests__logs.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ content-encoding: gzip
},
"iKey": "0fdcec70-0ce5-4085-89d9-9ae8ead9af66",
"name": "Microsoft.ApplicationInsights.Message",
"sampleRate": 100.0,
"tags": {
"ai.cloud.role": "test.client"
},
Expand All @@ -42,7 +41,6 @@ content-encoding: gzip
},
"iKey": "0fdcec70-0ce5-4085-89d9-9ae8ead9af66",
"name": "Microsoft.ApplicationInsights.Message",
"sampleRate": 100.0,
"tags": {
"ai.cloud.role": "test.client"
},
Expand All @@ -59,7 +57,6 @@ content-encoding: gzip
},
"iKey": "0fdcec70-0ce5-4085-89d9-9ae8ead9af66",
"name": "Microsoft.ApplicationInsights.Message",
"sampleRate": 100.0,
"tags": {
"ai.cloud.role": "test.client"
},
Expand All @@ -82,7 +79,6 @@ content-encoding: gzip
},
"iKey": "0fdcec70-0ce5-4085-89d9-9ae8ead9af66",
"name": "Microsoft.ApplicationInsights.Exception",
"sampleRate": 100.0,
"tags": {
"ai.cloud.role": "test.client"
},
Expand All @@ -99,7 +95,6 @@ content-encoding: gzip
},
"iKey": "0fdcec70-0ce5-4085-89d9-9ae8ead9af66",
"name": "Microsoft.ApplicationInsights.Message",
"sampleRate": 100.0,
"tags": {
"ai.cloud.role": "test.client",
"ai.operation.id": "STRIPPED",
Expand Down

0 comments on commit 4d14d02

Please sign in to comment.