Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions flashcat-axios/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.6.0

- Version bump to keep the SDK packages in lockstep (see `@flashcatcloud/rum`
0.6.0: remote configuration).

## 0.5.1

- Version bump to keep the SDK packages in lockstep (see `@flashcatcloud/rum`
Expand Down
4 changes: 2 additions & 2 deletions flashcat-axios/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
name: "@flashcatcloud/axios",
version: "0.5.1",
version: "0.6.0",
description: "FlashCat HarmonyOS axios integration: reports @ohos/axios requests as RUM resources with distributed-trace headers.",
main: "Index.ets",
license: "Apache-2.0",
author: "FlashCat <developer@flashcat.com> (https://flashcat.cloud)",
repository: "https://github.com/flashcatcloud/fc-sdk-harmony",
dependencies: {
"@flashcatcloud/trace": "0.5.1",
"@flashcatcloud/trace": "0.6.0",
"@ohos/axios": "^2.2.4"
}
}
11 changes: 11 additions & 0 deletions flashcat-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 0.6.0

- `SdkCore` gains `getIntakeTarget()`, `readSetting()` and `writeSetting()`,
which feature packages use to call an endpoint of their own and keep small
settings across launches (see `@flashcatcloud/rum` 0.6.0: remote
configuration).

### Breaking

- Code that implements `SdkCore` itself needs to add the three methods above.

## 0.5.1

- Version bump to keep the SDK packages in lockstep (see `@flashcatcloud/rum`
Expand Down
2 changes: 1 addition & 1 deletion flashcat-core/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
name: "@flashcatcloud/core",
version: "0.5.1",
version: "0.6.0",
description: "FlashCat HarmonyOS SDK core: init, configuration, context, message bus, storage and batched upload.",
main: "Index.ets",
license: "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion flashcat-core/src/main/ets/internal/Version.ets
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* Keep this in sync with the `version` field of each module's
* `oh-package.json5` on every release bump.
*/
export const SDK_VERSION: string = '0.5.1';
export const SDK_VERSION: string = '0.6.0';
5 changes: 5 additions & 0 deletions flashcat-crash/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.6.0

- Version bump to keep the SDK packages in lockstep (see `@flashcatcloud/rum`
0.6.0: remote configuration).

## 0.5.1

- Version bump to keep the SDK packages in lockstep (see `@flashcatcloud/rum`
Expand Down
4 changes: 2 additions & 2 deletions flashcat-crash/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
name: "@flashcatcloud/crash",
version: "0.5.1",
version: "0.6.0",
description: "FlashCat HarmonyOS crash reporting: hiAppEvent APP_CRASH (native + ArkTS) + APP_FREEZE, reported as RUM is_crash errors.",
main: "Index.ets",
license: "Apache-2.0",
author: "FlashCat <developer@flashcat.com> (https://flashcat.cloud)",
repository: "https://github.com/flashcatcloud/fc-sdk-harmony",
dependencies: {
"@flashcatcloud/core": "0.5.1"
"@flashcatcloud/core": "0.6.0"
}
}
4 changes: 2 additions & 2 deletions flashcat-crash/src/test/CrashEventMapper.test.ets
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function crashEventMapperTests(): void {
'TypeError: boom\n at run (Index.ets:1:2)',
'fp-1',
JsCrashPolicy.REPORT_THEN_EXIT,
'0.5.1',
'0.6.0',
'session-1',
'view-1',
'Home');
Expand All @@ -163,7 +163,7 @@ export default function crashEventMapperTests(): void {
'TypeError: boom\n at run (Index.ets:1:2)',
'fp-recovered',
JsCrashPolicy.REPORT_AND_RECOVER,
'0.5.1',
'0.6.0',
'session-1',
'view-1',
'Home');
Expand Down
6 changes: 3 additions & 3 deletions flashcat-crash/src/test/CrashIncident.test.ets
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function crashIncidentTests(): void {
it('roundTripsViewUrlThroughSerialization', TestType.FUNCTION | Size.SMALLTEST | Level.LEVEL0, (): void => {
const record: CrashIncidentRecord = new CrashIncidentRecord(
'inc-1', 1000, 'Error', 'boom', 'Error: boom\n at f (a.ets:1:1)', 'fp-1',
JsCrashPolicy.REPORT_THEN_EXIT, '0.5.1', 's-1', 'v-1', 'Home', 'pages/Home');
JsCrashPolicy.REPORT_THEN_EXIT, '0.6.0', 's-1', 'v-1', 'Home', 'pages/Home');

const parsed: CrashIncidentRecord | null = CrashIncidentRecord.parse(record.serialize());

Expand Down Expand Up @@ -162,7 +162,7 @@ export default function crashIncidentTests(): void {
'TypeError: boom\n at run (Index.ets:1:2)',
'fp-1',
JsCrashPolicy.REPORT_THEN_EXIT,
'0.5.1',
'0.6.0',
'session-1',
'view-1',
'Home');
Expand All @@ -178,7 +178,7 @@ export default function crashIncidentTests(): void {
expect(parsed.stack.indexOf('Index.ets')).assertLarger(-1);
expect(parsed.fingerprint).assertEqual('fp-1');
expect(parsed.policy).assertEqual(JsCrashPolicy.REPORT_THEN_EXIT);
expect(parsed.sdkVersion).assertEqual('0.5.1');
expect(parsed.sdkVersion).assertEqual('0.6.0');
expect(parsed.sessionId).assertEqual('session-1');
expect(parsed.viewId).assertEqual('view-1');
expect(parsed.viewName).assertEqual('Home');
Expand Down
27 changes: 27 additions & 0 deletions flashcat-rum/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Changelog

## 0.6.0

- **Remote configuration.** `RumConfigurationBuilder.setRemoteConfigurationEnabled(true)`
lets the session sample rate and a `custom` map be changed from the console
without releasing the app again. Off by default. The SDK fetches the
configuration at startup, at every new session and, when the console allows
it, on return to foreground; a failed or malformed response never changes the
values in use. A new rate applies from the next session, unless the console
asks for it immediately or it switches collection on or off.
- `RumConfigurationBuilder.setBeforeSampling(callback)` gives the app the last
word on the rate a session is drawn with, for example an allow-list driven by
`custom`. It runs synchronously on the calling thread: keep it light, and do
not report RUM events from inside it.
- `RumMonitor.setForcedSession()` keeps every session from then on, and
`RumMonitor.getRemoteConfig()` returns the delivered `custom` map.
- View events now report the sample rate their session was drawn with
(`_dd.configuration.session_sample_rate`), also when remote configuration is
off, and the configuration version (`rc_version`) when one decided it.
- Fixed: ending a session that had already expired, for example `stopSession()`
after a long time in the background, credited the idle gap to the last
view's `time_spent`.

### Breaking

- `RumMonitor` gains `setForcedSession()` and `getRemoteConfig()`. Only code
that implements `RumMonitor` itself needs to add them.

## 0.5.1

- App freezes (`APP_FREEZE`) are now reported with `error.category: "ANR"`
Expand Down
4 changes: 2 additions & 2 deletions flashcat-rum/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
name: "@flashcatcloud/rum",
version: "0.5.1",
version: "0.6.0",
description: "FlashCat HarmonyOS RUM: views, actions, resources, errors, sessions.",
main: "Index.ets",
license: "Apache-2.0",
author: "FlashCat <developer@flashcat.com> (https://flashcat.cloud)",
repository: "https://github.com/flashcatcloud/fc-sdk-harmony",
dependencies: {
"@flashcatcloud/core": "0.5.1"
"@flashcatcloud/core": "0.6.0"
}
}
4 changes: 2 additions & 2 deletions flashcat-rum/src/test/RemoteConfig.test.ets
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function testContext(appVersion: string = '1.0.0'): FlashcatContext {
version: appVersion,
bundleId: 'com.example.demo',
source: 'harmony',
sdkVersion: '0.5.1',
sdkVersion: '0.6.0',
device: {
brand: 'HUAWEI', model: 'Pura', osName: 'HarmonyOS', osVersion: 'NEXT',
apiVersion: 18, deviceType: 'phone'
Expand Down Expand Up @@ -686,7 +686,7 @@ export default function remoteConfigTests(): void {
it('buildsTheConfigUrlTheEngineAnswers', TestType.FUNCTION | Size.SMALLTEST | Level.LEVEL0, (): void => {
const url: string = buildConfigUrl('https://intake.example.com/', 'ct 123', testContext('2.3.4'));
expect(url).assertEqual(
'https://intake.example.com/api/v2/rum/config?client_token=ct%20123&sdk=harmony&env=prod&app_version=2.3.4&sdk_version=0.5.1');
'https://intake.example.com/api/v2/rum/config?client_token=ct%20123&sdk=harmony&env=prod&app_version=2.3.4&sdk_version=0.6.0');
});
});

Expand Down
2 changes: 1 addition & 1 deletion flashcat-rum/src/test/SessionLifecycle.test.ets
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function testContext(): FlashcatContext {
version: '1.0.0',
bundleId: 'com.example.demo',
source: 'harmony',
sdkVersion: '0.5.1',
sdkVersion: '0.6.0',
device: {
brand: 'HUAWEI', model: 'Pura', osName: 'HarmonyOS', osVersion: 'NEXT',
apiVersion: 18, deviceType: 'phone'
Expand Down
5 changes: 5 additions & 0 deletions flashcat-trace/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.6.0

- Version bump to keep the SDK packages in lockstep (see `@flashcatcloud/rum`
0.6.0: remote configuration).

## 0.5.1

- Version bump to keep the SDK packages in lockstep (see `@flashcatcloud/rum`
Expand Down
4 changes: 2 additions & 2 deletions flashcat-trace/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
name: "@flashcatcloud/trace",
version: "0.5.1",
version: "0.6.0",
description: "FlashCat HarmonyOS trace-context propagation: W3C traceparent generation + rcp interceptor + manual headers.",
main: "Index.ets",
license: "Apache-2.0",
author: "FlashCat <developer@flashcat.com> (https://flashcat.cloud)",
repository: "https://github.com/flashcatcloud/fc-sdk-harmony",
dependencies: {
"@flashcatcloud/core": "0.5.1"
"@flashcatcloud/core": "0.6.0"
}
}
Loading