Skip to content

Commit 765ab94

Browse files
committed
feat(profiling): add javascript platform
1 parent f077e38 commit 765ab94

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- Protocol validation for source map image type. ([#1869](https://github.com/getsentry/relay/pull/1869))
88
- Add PHP support for profiling. ([#1871](https://github.com/getsentry/relay/pull/1871))
9+
- Add Javascript support for profiling. ([#1871](https://github.com/getsentry/relay/pull/1876))
910

1011
**Internal**:
1112

relay-profiling/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ pub use crate::outcomes::discard_reason;
119119
enum Platform {
120120
Android,
121121
Cocoa,
122+
Javascript,
122123
Node,
123124
Php,
124125
Python,

relay-profiling/src/sample.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ impl SampleProfile {
175175
&& self.device.manufacturer.is_some()
176176
&& self.device.model.is_some()
177177
}
178-
Platform::Python | Platform::Node | Platform::Php => self.runtime.is_some(),
178+
Platform::Python | Platform::Javascript | Platform::Node | Platform::Php => {
179+
self.runtime.is_some()
180+
}
179181
_ => true,
180182
}
181183
}

0 commit comments

Comments
 (0)