@@ -48,47 +48,47 @@ For more ways to install `opentelemetry` extension (pie, pickle, Docker), see th
4848> For Symfony application auto-instrumentation install ` open-telemetry/opentelemetry-auto-symfony` package.
4949
5050` ` ` php
51- use AppSignal \A ppSignal ;
51+ use Appsignal \A ppsignal ;
5252
5353// add a custom instrumentation span to the current trace
54- AppSignal ::instrument(' some_event' , fn () => sleep(1));
54+ Appsignal ::instrument(' some_event' , fn () => sleep(1));
5555
5656// add a custom instrumentation span to the current trace with data
57- AppSignal ::instrument(' some_event' , [' region' => ' eu' ], fn () => sleep(1));
57+ Appsignal ::instrument(' some_event' , [' region' => ' eu' ], fn () => sleep(1));
5858
5959// customize the name of the trace
60- AppSignal ::setAction(' my action' ),
60+ Appsignal ::setAction(' my action' ),
6161
6262// add custom data to current span
63- AppSignal ::addCustomData([
63+ Appsignal ::addCustomData([
6464 ' string-attribute' => ' abcdef' ,
6565 ' int-attribute' => 1234,
6666 ' bool-attribute' => true,
6767]);
6868
6969// add tags to current span
70- AppSignal ::addTags([
70+ Appsignal ::addTags([
7171 ' string-tag' => ' some value' ,
7272 ' integer-tag' => 1234,
7373 ' bool-tag' => true,
7474]);
7575
7676// report a handled exception
77- AppSignal ::reportError($exception );
77+ Appsignal ::reportError($exception );
7878
7979// add metrics
80- AppSignal ::setGauge(' my_gauge' , 12);
81- AppSignal ::setGauge(' my_gauge_with_attributes' , 13, [' region' => ' eu' ]);
80+ Appsignal ::setGauge(' my_gauge' , 12);
81+ Appsignal ::setGauge(' my_gauge_with_attributes' , 13, [' region' => ' eu' ]);
8282
83- AppSignal ::addDistributionValue(' memory_usage' , 50);
84- AppSignal ::addDistributionValue(' memory_usage' , 70);
83+ Appsignal ::addDistributionValue(' memory_usage' , 50);
84+ Appsignal ::addDistributionValue(' memory_usage' , 70);
8585
86- AppSignal ::addDistributionValue(' with_attributes' , 10, [' region' => ' eu' ]);
87- AppSignal ::addDistributionValue(' with_attributes' , 20, [' region' => ' eu' ]);
88- AppSignal ::addDistributionValue(' with_attributes' , 30, [' region' => ' eu' ]);
86+ Appsignal ::addDistributionValue(' with_attributes' , 10, [' region' => ' eu' ]);
87+ Appsignal ::addDistributionValue(' with_attributes' , 20, [' region' => ' eu' ]);
88+ Appsignal ::addDistributionValue(' with_attributes' , 30, [' region' => ' eu' ]);
8989
90- AppSignal ::incrementCounter(' my_counter' , 1);
91- AppSignal ::incrementCounter(' my_counter' , 3, [' region' => ' eu' ]);
90+ Appsignal ::incrementCounter(' my_counter' , 1);
91+ Appsignal ::incrementCounter(' my_counter' , 3, [' region' => ' eu' ]);
9292` ` `
9393
9494# # Development
0 commit comments