Skip to content

Commit 4dedcec

Browse files
committed
Use environment configuration consistently in SDK guidance
1 parent 6385933 commit 4dedcec

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.agents/skills/exceptionless-javascript/references/client-core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ await client.startup((config) => {
2222
config.version = "1.2.3";
2323
config.setUserIdentity("12345678", "Blake");
2424
config.defaultTags.push("Example", "JavaScript", "Core");
25-
config.defaultData["deployment"] = { environment: "production" };
25+
config.environment = "production";
2626
});
2727
```
2828

.agents/skills/exceptionless-javascript/references/plugins.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ await Exceptionless.startup((config) => {
3030
import type { EventPluginContext, IEventPlugin, PluginContext } from "@exceptionless/core";
3131
import { Exceptionless } from "@exceptionless/browser";
3232

33-
class DeploymentPlugin implements IEventPlugin {
33+
class BuildInfoPlugin implements IEventPlugin {
3434
priority = 90;
35-
name = "DeploymentPlugin";
35+
name = "BuildInfoPlugin";
3636

3737
startup(context: PluginContext): Promise<void> {
38-
context.log.info("Deployment plugin started");
38+
context.log.info("Build information plugin started");
3939
return Promise.resolve();
4040
}
4141

4242
run(context: EventPluginContext): Promise<void> {
4343
context.event.data ??= {};
44-
context.event.data["deployment"] = "production";
44+
context.event.data["build"] = "build-123";
4545
return Promise.resolve();
4646
}
4747
}
4848
await Exceptionless.startup((config) => {
4949
config.apiKey = "API_KEY_HERE";
50-
config.addPlugin(new DeploymentPlugin());
50+
config.addPlugin(new BuildInfoPlugin());
5151
});
5252
```
5353

0 commit comments

Comments
 (0)