Skip to content

Commit db9c1a8

Browse files
committed
Merge branch 'main' into v8
# Conflicts: # packages/core/package.json # yarn.lock
2 parents 3708827 + 0e75c19 commit db9c1a8

33 files changed

Lines changed: 653 additions & 130 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
> make sure you follow our [migration guide](https://docs.sentry.io/platforms/react-native/migration/) first.
77
<!-- prettier-ignore-end -->
88
9-
## Unreleased
9+
### Unreleased
1010

1111
### Upgrading from 7.x to 8.0
1212

@@ -31,8 +31,20 @@ See our [migration docs](https://docs.sentry.io/platforms/react-native/migration
3131
- **Sentry Self-Hosted**: ([#5523](https://github.com/getsentry/sentry-react-native/pull/5523))
3232
- Sentry CLI v3 requires self-hosted **25.11.1+** (previously 25.2.0)
3333

34+
### Dependencies
35+
36+
- Bump Cocoa SDK from v8.58.0 to v9.1.0 ([#5356](https://github.com/getsentry/sentry-react-native/pull/5356))
37+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#910)
38+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.58.0...9.1.0)
39+
- Bump CLI from v2.58.4 to v3.1.0 ([#5523](https://github.com/getsentry/sentry-react-native/pull/5523), [#5471](https://github.com/getsentry/sentry-react-native/pull/5471), [#5514](https://github.com/getsentry/sentry-react-native/pull/5514), [#5502](https://github.com/getsentry/sentry-react-native/pull/5502))
40+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#310)
41+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.58.4...3.1.0)
42+
43+
## 7.11.0
44+
3445
### Features
3546

47+
- Add support for applying scope attributes to JS logs ([#5579](https://github.com/getsentry/sentry-react-native/pull/5579))
3648
- Add experimental `sentry-span-attributes` prop to attach custom attributes to user interaction spans ([#5569](https://github.com/getsentry/sentry-react-native/pull/5569))
3749
```tsx
3850
<Pressable
@@ -48,15 +60,12 @@ See our [migration docs](https://docs.sentry.io/platforms/react-native/migration
4860

4961
### Dependencies
5062

51-
- Bump Cocoa SDK from v8.58.0 to v9.1.0 ([#5356](https://github.com/getsentry/sentry-react-native/pull/5356))
52-
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#910)
53-
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.58.0...9.1.0)
54-
- Bump CLI from v2.58.4 to v3.1.0 ([#5523](https://github.com/getsentry/sentry-react-native/pull/5523), [#5471](https://github.com/getsentry/sentry-react-native/pull/5471), [#5514](https://github.com/getsentry/sentry-react-native/pull/5514), [#5502](https://github.com/getsentry/sentry-react-native/pull/5502))
55-
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#310)
56-
- [diff](https://github.com/getsentry/sentry-cli/compare/2.58.4...3.1.0)
5763
- Bump Bundler Plugins from v4.7.0 to v4.8.0 ([#5581](https://github.com/getsentry/sentry-react-native/pull/5581))
5864
- [changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md#480)
5965
- [diff](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.7.0...4.8.0)
66+
- Bump JavaScript SDK from v10.36.0 to v10.37.0 ([#5589](https://github.com/getsentry/sentry-react-native/pull/5589))
67+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#10370)
68+
- [diff](https://github.com/getsentry/sentry-javascript/compare/10.36.0...10.37.0)
6069

6170
## 7.10.0
6271

dev-packages/e2e-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-e2e-tests",
3-
"version": "7.10.0",
3+
"version": "7.11.0",
44
"private": true,
55
"description": "Sentry React Native End to End Tests Library",
66
"main": "dist/index.js",
@@ -13,8 +13,8 @@
1313
"devDependencies": {
1414
"@babel/preset-env": "^7.25.3",
1515
"@babel/preset-typescript": "^7.18.6",
16-
"@sentry/core": "10.36.0",
17-
"@sentry/react-native": "7.10.0",
16+
"@sentry/core": "10.37.0",
17+
"@sentry/react-native": "7.11.0",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

dev-packages/type-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sentry-react-native-type-check",
33
"private": true,
4-
"version": "7.10.0",
4+
"version": "7.11.0",
55
"scripts": {
66
"type-check": "./run-type-check.sh"
77
}

dev-packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-samples-utils",
3-
"version": "7.10.0",
3+
"version": "7.11.0",
44
"description": "Internal Samples Utils",
55
"main": "index.js",
66
"license": "MIT",

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "7.10.0",
3+
"version": "7.11.0",
44
"packages": [
55
"packages/*",
66
"dev-packages/*",

packages/core/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,26 @@ public void setTag(String key, String value) {
933933
});
934934
}
935935

936+
public void setAttribute(String key, String value) {
937+
// TODO(alwx): This is not implemented in sentry-android yet
938+
/*
939+
* Sentry.configureScope(
940+
* scope -> {
941+
* scope.setAttribute(key, value);
942+
* });
943+
*/
944+
}
945+
946+
public void setAttributes(ReadableMap attributes) {
947+
// TODO(alwx): This is not implemented in sentry-android yet
948+
/*
949+
* Sentry.configureScope(
950+
* scope -> {
951+
* scope.setAttributes(attributes);
952+
* });
953+
*/
954+
}
955+
936956
public void closeNativeSdk(Promise promise) {
937957
Sentry.close();
938958

packages/core/android/src/main/java/io/sentry/react/RNSentryVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class RNSentryVersion {
44
static final String REACT_NATIVE_SDK_PACKAGE_NAME = "npm:@sentry/react-native";
5-
static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "7.10.0";
5+
static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "7.11.0";
66
static final String NATIVE_SDK_NAME = "sentry.native.android.react-native";
77
static final String ANDROID_SDK_NAME = "sentry.java.android.react-native";
88
static final String REACT_NATIVE_SDK_NAME = "sentry.javascript.react-native";

packages/core/android/src/newarch/java/io/sentry/react/RNSentryModule.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ public void setTag(String key, String value) {
112112
this.impl.setTag(key, value);
113113
}
114114

115+
@Override
116+
public void setAttribute(String key, String value) {
117+
this.impl.setAttribute(key, value);
118+
}
119+
120+
@Override
121+
public void setAttributes(ReadableMap attributes) {
122+
this.impl.setAttributes(attributes);
123+
}
124+
115125
@Override
116126
public void closeNativeSdk(Promise promise) {
117127
this.impl.closeNativeSdk(promise);

packages/core/android/src/oldarch/java/io/sentry/react/RNSentryModule.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ public void setTag(String key, String value) {
112112
this.impl.setTag(key, value);
113113
}
114114

115+
@ReactMethod
116+
public void setAttribute(String key, String value) {
117+
this.impl.setAttribute(key, value);
118+
}
119+
120+
@ReactMethod
121+
public void setAttributes(ReadableMap attributes) {
122+
this.impl.setAttributes(attributes);
123+
}
124+
115125
@ReactMethod
116126
public void closeNativeSdk(Promise promise) {
117127
this.impl.closeNativeSdk(promise);
@@ -132,6 +142,11 @@ public void fetchNativeDeviceContexts(Promise promise) {
132142
this.impl.fetchNativeDeviceContexts(promise);
133143
}
134144

145+
@ReactMethod
146+
public void fetchNativeLogAttributes(Promise promise) {
147+
this.impl.fetchNativeLogAttributes(promise);
148+
}
149+
135150
@ReactMethod
136151
public void fetchNativeSdkInfo(Promise promise) {
137152
this.impl.fetchNativeSdkInfo(promise);

packages/core/ios/RNSentry.mm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,22 @@ + (SentryUser *_Nullable)userFrom:(NSDictionary *)userKeys
717717
configureScope:^(SentryScope *_Nonnull scope) { [scope setTagValue:value forKey:key]; }];
718718
}
719719

720+
RCT_EXPORT_METHOD(setAttribute : (NSString *)key value : (NSString *)value)
721+
{
722+
// TODO(alwx): This is not implemented in sentry-cocoa yet
723+
/*[SentrySDKWrapper
724+
configureScope:^(SentryScope *_Nonnull scope) { [scope setAttribute:value forKey:key]; }];*/
725+
}
726+
727+
RCT_EXPORT_METHOD(setAttributes : (NSDictionary *)attributes)
728+
{
729+
// TODO(alwx): This is not implemented in sentry-cocoa yet
730+
/*[SentrySDKWrapper configureScope:^(SentryScope *_Nonnull scope) {
731+
[attributes enumerateKeysAndObjectsUsingBlock:^(
732+
NSString *key, NSString *value, BOOL *stop) { [scope setAttribute:value forKey:key]; }];
733+
}];*/
734+
}
735+
720736
RCT_EXPORT_METHOD(crash) { [SentrySDKWrapper crash]; }
721737

722738
RCT_EXPORT_METHOD(

0 commit comments

Comments
 (0)