Skip to content

Commit 61ed1fb

Browse files
feat: check to stop re init of pulse on RN (#193)
* feat: exposed one type * chore: sdk version bumup to 0.0.5 * feat: rn version added * feat: new version 0.0.6 * feat: version 0.0.7
1 parent 8e054bc commit 61ed1fb

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

pulse-android-otel/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ android.useAndroidX=true
2424
android.minSdk=21
2525
android.compileSdk=35
2626
android.experimental.enableTestFixturesKotlinSupport=true
27-
version=0.0.4
27+
version=0.0.7
2828
group=org.dreamhorizon

pulse-react-native-otel/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ repositories {
7777
google()
7878
}
7979

80-
def pulse_version = "0.0.4-alpha"
80+
def pulse_version = "0.0.7-alpha"
8181
dependencies {
8282
implementation("com.facebook.react:react-android")
8383

pulse-react-native-otel/example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ dependencies {
120120

121121
implementation("com.squareup.okhttp3:okhttp:5.0.0")
122122

123-
implementation("org.dreamhorizon.instrumentation:okhttp3-library:0.0.4-alpha")
124-
byteBuddy("org.dreamhorizon.instrumentation:okhttp3-agent:0.0.4-alpha")
123+
implementation("org.dreamhorizon.instrumentation:okhttp3-library:0.0.7-alpha")
124+
byteBuddy("org.dreamhorizon.instrumentation:okhttp3-agent:0.0.7-alpha")
125125

126126
}

pulse-react-native-otel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dreamhorizonorg/pulse-react-native",
3-
"version": "0.0.4",
3+
"version": "0.0.7",
44
"description": "Production-grade observability SDK for React Native applications with OpenTelemetry support. Real-time monitoring, error tracking, performance insights, and distributed tracing.",
55
"main": "./lib/module/index.js",
66
"types": "./lib/typescript/src/index.d.ts",

pulse-react-native-otel/src/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ export function start(options?: PulseConfig): void {
122122
);
123123
return;
124124
}
125+
if (isStarted) {
126+
console.log('[Pulse] SDK already started.');
127+
return;
128+
}
125129

126130
isStarted = true;
127131
const features = getFeaturesFromRemoteConfig();

pulse-react-native-otel/src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { useNavigationTracking, markContentReady } from './navigation';
1010

1111
export type { Span } from './trace';
1212
export type { PulseConfig } from './config';
13+
export type { NetworkHeaderConfig } from './config';
1314
export type { PulseAttributes, PulseAttributeValue } from './pulse.interface';
1415
export type {
1516
ReactNavigationIntegration,

0 commit comments

Comments
 (0)