Skip to content

Commit 644ee85

Browse files
authored
fix(logs): send environment in sentry.environment default attribute (#837)
1 parent 5cd032d commit 644ee85

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixes
6+
7+
- fix(logs): send environment in `sentry.environment` default attribute (#837) by @lcian
8+
39
## 0.39.0
410

511
### Features

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sentry-core/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ impl Client {
427427
if !log.attributes.contains_key("sentry.environment") {
428428
if let Some(environment) = self.options.environment.as_ref() {
429429
log.attributes.insert(
430-
"sentry.sdk.version".to_owned(),
430+
"sentry.environment".to_owned(),
431431
LogAttribute(environment.clone().into()),
432432
);
433433
}

0 commit comments

Comments
 (0)