File tree Expand file tree Collapse file tree
.agents/skills/exceptionless-javascript/references Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -30,24 +30,24 @@ await Exceptionless.startup((config) => {
3030import type { EventPluginContext , IEventPlugin , PluginContext } from " @exceptionless/core" ;
3131import { 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}
4848await Exceptionless .startup ((config ) => {
4949 config .apiKey = " API_KEY_HERE" ;
50- config .addPlugin (new DeploymentPlugin ());
50+ config .addPlugin (new BuildInfoPlugin ());
5151});
5252```
5353
You can’t perform that action at this time.
0 commit comments