@sanseng/liveavatar-js-sdk-skywalking 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/index.cjs.js +1410 -0
- package/dist/index.d.ts +286 -0
- package/dist/index.esm.js +1403 -0
- package/dist/index.umd.js +1414 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sanseng
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# LiveAvatar SkyWalking Plugin
|
|
2
|
+
|
|
3
|
+
`@sanseng/liveavatar-js-sdk-skywalking` connects LiveAvatar client diagnostics to SkyWalking. It bundles SkyWalking js-sdk `1.1.27`, so applications do not need to add a script tag or directly call `window.ClientMonitor.register(...)`.
|
|
4
|
+
|
|
5
|
+
## What it solves
|
|
6
|
+
|
|
7
|
+
- Reports LiveAvatar A/V Sync alert lifecycles with compact, causally ordered diagnostic evidence for investigation in SkyWalking.
|
|
8
|
+
- Reports qualifying SDK Operational Log errors without uploading the original error message, stack, token, or business payload.
|
|
9
|
+
- Adds observability through the public LiveAvatar Plugin API v1, without subscribing to legacy SDK events or using SDK internals.
|
|
10
|
+
- Bundles and registers a browser SkyWalking client when one has not already been supplied by the application.
|
|
11
|
+
|
|
12
|
+
## Quick start
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install @sanseng/liveavatar-js-sdk @sanseng/liveavatar-js-sdk-skywalking
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import { createClient } from "@sanseng/liveavatar-js-sdk";
|
|
20
|
+
import { createSkyWalkingPlugin } from "@sanseng/liveavatar-js-sdk-skywalking";
|
|
21
|
+
|
|
22
|
+
const client = createClient({
|
|
23
|
+
debug: { avSync: { enabled: true } },
|
|
24
|
+
plugins: [
|
|
25
|
+
createSkyWalkingPlugin({
|
|
26
|
+
isOverseas: false,
|
|
27
|
+
serviceVersion: "web_1.0.0",
|
|
28
|
+
jsErrors: true,
|
|
29
|
+
apiErrors: true,
|
|
30
|
+
resourceErrors: true,
|
|
31
|
+
autoTracePerf: true,
|
|
32
|
+
}),
|
|
33
|
+
],
|
|
34
|
+
connectConfig: {
|
|
35
|
+
// Your normal LiveAvatar connection configuration.
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The plugin registers SkyWalking during client setup. Its service is always `yy-tx::liveavatar-js-sdk`; it cannot be configured. If `window.ClientMonitor` already exists, the plugin treats it as externally registered and never overwrites or registers it. The bundled client registers only once per page; later differing configurations are ignored with a console warning.
|
|
41
|
+
|
|
42
|
+
The package requires `@sanseng/liveavatar-js-sdk` `^2.2.0`.
|