@ms-cloudpack/telemetry 0.11.74 → 0.12.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/NOTICE.txt CHANGED
@@ -178,11 +178,33 @@ SOFTWARE.
178
178
 
179
179
  ----
180
180
 
181
- @azure/monitor-opentelemetry-exporter 1.0.0-beta.28 - MIT
181
+ @azure/monitor-opentelemetry-exporter 1.0.0-beta.39 - MIT
182
182
  https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/monitor-opentelemetry-exporter/
183
183
 
184
184
  Author: Microsoft Corporation
185
185
 
186
+ The MIT License (MIT)
187
+
188
+ Copyright (c) 2018 Microsoft
189
+
190
+ Permission is hereby granted, free of charge, to any person obtaining a copy
191
+ of this software and associated documentation files (the "Software"), to deal
192
+ in the Software without restriction, including without limitation the rights
193
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
194
+ copies of the Software, and to permit persons to whom the Software is
195
+ furnished to do so, subject to the following conditions:
196
+
197
+ The above copyright notice and this permission notice shall be included in all
198
+ copies or substantial portions of the Software.
199
+
200
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
201
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
202
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
203
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
204
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
205
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
206
+ SOFTWARE.
207
+
186
208
  ----
187
209
 
188
210
  @nodelib/fs.scandir 2.1.5 - MIT
@@ -266,7 +288,7 @@ SOFTWARE.
266
288
 
267
289
  ----
268
290
 
269
- @opentelemetry/api 1.9.0 - Apache-2.0
291
+ @opentelemetry/api 1.9.1 - Apache-2.0
270
292
  https://github.com/open-telemetry/opentelemetry-js/tree/main/api
271
293
 
272
294
  Author: OpenTelemetry Authors
@@ -475,7 +497,7 @@ Apache License
475
497
 
476
498
  ----
477
499
 
478
- @opentelemetry/context-async-hooks 1.30.1 - Apache-2.0
500
+ @opentelemetry/context-async-hooks 2.1.0 - Apache-2.0
479
501
  https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-context-async-hooks
480
502
 
481
503
  Author: OpenTelemetry Authors
@@ -684,7 +706,7 @@ Apache License
684
706
 
685
707
  ----
686
708
 
687
- @opentelemetry/core 1.30.1 - Apache-2.0
709
+ @opentelemetry/core 2.1.0 - Apache-2.0
688
710
  https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-core
689
711
 
690
712
  Author: OpenTelemetry Authors
@@ -893,425 +915,7 @@ Apache License
893
915
 
894
916
  ----
895
917
 
896
- @opentelemetry/propagator-b3 1.30.1 - Apache-2.0
897
- https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-propagator-b3
898
-
899
- Author: OpenTelemetry Authors
900
-
901
- Apache License
902
- Version 2.0, January 2004
903
- http://www.apache.org/licenses/
904
-
905
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
906
-
907
- 1. Definitions.
908
-
909
- "License" shall mean the terms and conditions for use, reproduction,
910
- and distribution as defined by Sections 1 through 9 of this document.
911
-
912
- "Licensor" shall mean the copyright owner or entity authorized by
913
- the copyright owner that is granting the License.
914
-
915
- "Legal Entity" shall mean the union of the acting entity and all
916
- other entities that control, are controlled by, or are under common
917
- control with that entity. For the purposes of this definition,
918
- "control" means (i) the power, direct or indirect, to cause the
919
- direction or management of such entity, whether by contract or
920
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
921
- outstanding shares, or (iii) beneficial ownership of such entity.
922
-
923
- "You" (or "Your") shall mean an individual or Legal Entity
924
- exercising permissions granted by this License.
925
-
926
- "Source" form shall mean the preferred form for making modifications,
927
- including but not limited to software source code, documentation
928
- source, and configuration files.
929
-
930
- "Object" form shall mean any form resulting from mechanical
931
- transformation or translation of a Source form, including but
932
- not limited to compiled object code, generated documentation,
933
- and conversions to other media types.
934
-
935
- "Work" shall mean the work of authorship, whether in Source or
936
- Object form, made available under the License, as indicated by a
937
- copyright notice that is included in or attached to the work
938
- (an example is provided in the Appendix below).
939
-
940
- "Derivative Works" shall mean any work, whether in Source or Object
941
- form, that is based on (or derived from) the Work and for which the
942
- editorial revisions, annotations, elaborations, or other modifications
943
- represent, as a whole, an original work of authorship. For the purposes
944
- of this License, Derivative Works shall not include works that remain
945
- separable from, or merely link (or bind by name) to the interfaces of,
946
- the Work and Derivative Works thereof.
947
-
948
- "Contribution" shall mean any work of authorship, including
949
- the original version of the Work and any modifications or additions
950
- to that Work or Derivative Works thereof, that is intentionally
951
- submitted to Licensor for inclusion in the Work by the copyright owner
952
- or by an individual or Legal Entity authorized to submit on behalf of
953
- the copyright owner. For the purposes of this definition, "submitted"
954
- means any form of electronic, verbal, or written communication sent
955
- to the Licensor or its representatives, including but not limited to
956
- communication on electronic mailing lists, source code control systems,
957
- and issue tracking systems that are managed by, or on behalf of, the
958
- Licensor for the purpose of discussing and improving the Work, but
959
- excluding communication that is conspicuously marked or otherwise
960
- designated in writing by the copyright owner as "Not a Contribution."
961
-
962
- "Contributor" shall mean Licensor and any individual or Legal Entity
963
- on behalf of whom a Contribution has been received by Licensor and
964
- subsequently incorporated within the Work.
965
-
966
- 2. Grant of Copyright License. Subject to the terms and conditions of
967
- this License, each Contributor hereby grants to You a perpetual,
968
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
969
- copyright license to reproduce, prepare Derivative Works of,
970
- publicly display, publicly perform, sublicense, and distribute the
971
- Work and such Derivative Works in Source or Object form.
972
-
973
- 3. Grant of Patent License. Subject to the terms and conditions of
974
- this License, each Contributor hereby grants to You a perpetual,
975
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
976
- (except as stated in this section) patent license to make, have made,
977
- use, offer to sell, sell, import, and otherwise transfer the Work,
978
- where such license applies only to those patent claims licensable
979
- by such Contributor that are necessarily infringed by their
980
- Contribution(s) alone or by combination of their Contribution(s)
981
- with the Work to which such Contribution(s) was submitted. If You
982
- institute patent litigation against any entity (including a
983
- cross-claim or counterclaim in a lawsuit) alleging that the Work
984
- or a Contribution incorporated within the Work constitutes direct
985
- or contributory patent infringement, then any patent licenses
986
- granted to You under this License for that Work shall terminate
987
- as of the date such litigation is filed.
988
-
989
- 4. Redistribution. You may reproduce and distribute copies of the
990
- Work or Derivative Works thereof in any medium, with or without
991
- modifications, and in Source or Object form, provided that You
992
- meet the following conditions:
993
-
994
- (a) You must give any other recipients of the Work or
995
- Derivative Works a copy of this License; and
996
-
997
- (b) You must cause any modified files to carry prominent notices
998
- stating that You changed the files; and
999
-
1000
- (c) You must retain, in the Source form of any Derivative Works
1001
- that You distribute, all copyright, patent, trademark, and
1002
- attribution notices from the Source form of the Work,
1003
- excluding those notices that do not pertain to any part of
1004
- the Derivative Works; and
1005
-
1006
- (d) If the Work includes a "NOTICE" text file as part of its
1007
- distribution, then any Derivative Works that You distribute must
1008
- include a readable copy of the attribution notices contained
1009
- within such NOTICE file, excluding those notices that do not
1010
- pertain to any part of the Derivative Works, in at least one
1011
- of the following places: within a NOTICE text file distributed
1012
- as part of the Derivative Works; within the Source form or
1013
- documentation, if provided along with the Derivative Works; or,
1014
- within a display generated by the Derivative Works, if and
1015
- wherever such third-party notices normally appear. The contents
1016
- of the NOTICE file are for informational purposes only and
1017
- do not modify the License. You may add Your own attribution
1018
- notices within Derivative Works that You distribute, alongside
1019
- or as an addendum to the NOTICE text from the Work, provided
1020
- that such additional attribution notices cannot be construed
1021
- as modifying the License.
1022
-
1023
- You may add Your own copyright statement to Your modifications and
1024
- may provide additional or different license terms and conditions
1025
- for use, reproduction, or distribution of Your modifications, or
1026
- for any such Derivative Works as a whole, provided Your use,
1027
- reproduction, and distribution of the Work otherwise complies with
1028
- the conditions stated in this License.
1029
-
1030
- 5. Submission of Contributions. Unless You explicitly state otherwise,
1031
- any Contribution intentionally submitted for inclusion in the Work
1032
- by You to the Licensor shall be under the terms and conditions of
1033
- this License, without any additional terms or conditions.
1034
- Notwithstanding the above, nothing herein shall supersede or modify
1035
- the terms of any separate license agreement you may have executed
1036
- with Licensor regarding such Contributions.
1037
-
1038
- 6. Trademarks. This License does not grant permission to use the trade
1039
- names, trademarks, service marks, or product names of the Licensor,
1040
- except as required for reasonable and customary use in describing the
1041
- origin of the Work and reproducing the content of the NOTICE file.
1042
-
1043
- 7. Disclaimer of Warranty. Unless required by applicable law or
1044
- agreed to in writing, Licensor provides the Work (and each
1045
- Contributor provides its Contributions) on an "AS IS" BASIS,
1046
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1047
- implied, including, without limitation, any warranties or conditions
1048
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1049
- PARTICULAR PURPOSE. You are solely responsible for determining the
1050
- appropriateness of using or redistributing the Work and assume any
1051
- risks associated with Your exercise of permissions under this License.
1052
-
1053
- 8. Limitation of Liability. In no event and under no legal theory,
1054
- whether in tort (including negligence), contract, or otherwise,
1055
- unless required by applicable law (such as deliberate and grossly
1056
- negligent acts) or agreed to in writing, shall any Contributor be
1057
- liable to You for damages, including any direct, indirect, special,
1058
- incidental, or consequential damages of any character arising as a
1059
- result of this License or out of the use or inability to use the
1060
- Work (including but not limited to damages for loss of goodwill,
1061
- work stoppage, computer failure or malfunction, or any and all
1062
- other commercial damages or losses), even if such Contributor
1063
- has been advised of the possibility of such damages.
1064
-
1065
- 9. Accepting Warranty or Additional Liability. While redistributing
1066
- the Work or Derivative Works thereof, You may choose to offer,
1067
- and charge a fee for, acceptance of support, warranty, indemnity,
1068
- or other liability obligations and/or rights consistent with this
1069
- License. However, in accepting such obligations, You may act only
1070
- on Your own behalf and on Your sole responsibility, not on behalf
1071
- of any other Contributor, and only if You agree to indemnify,
1072
- defend, and hold each Contributor harmless for any liability
1073
- incurred by, or claims asserted against, such Contributor by reason
1074
- of your accepting any such warranty or additional liability.
1075
-
1076
- END OF TERMS AND CONDITIONS
1077
-
1078
- APPENDIX: How to apply the Apache License to your work.
1079
-
1080
- To apply the Apache License to your work, attach the following
1081
- boilerplate notice, with the fields enclosed by brackets "[]"
1082
- replaced with your own identifying information. (Don't include
1083
- the brackets!) The text should be enclosed in the appropriate
1084
- comment syntax for the file format. We also recommend that a
1085
- file or class name and description of purpose be included on the
1086
- same "printed page" as the copyright notice for easier
1087
- identification within third-party archives.
1088
-
1089
- Copyright [yyyy] [name of copyright owner]
1090
-
1091
- Licensed under the Apache License, Version 2.0 (the "License");
1092
- you may not use this file except in compliance with the License.
1093
- You may obtain a copy of the License at
1094
-
1095
- http://www.apache.org/licenses/LICENSE-2.0
1096
-
1097
- Unless required by applicable law or agreed to in writing, software
1098
- distributed under the License is distributed on an "AS IS" BASIS,
1099
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1100
- See the License for the specific language governing permissions and
1101
- limitations under the License.
1102
-
1103
- ----
1104
-
1105
- @opentelemetry/propagator-jaeger 1.30.1 - Apache-2.0
1106
- https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-propagator-jaeger
1107
-
1108
- Author: OpenTelemetry Authors
1109
-
1110
- Apache License
1111
- Version 2.0, January 2004
1112
- http://www.apache.org/licenses/
1113
-
1114
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1115
-
1116
- 1. Definitions.
1117
-
1118
- "License" shall mean the terms and conditions for use, reproduction,
1119
- and distribution as defined by Sections 1 through 9 of this document.
1120
-
1121
- "Licensor" shall mean the copyright owner or entity authorized by
1122
- the copyright owner that is granting the License.
1123
-
1124
- "Legal Entity" shall mean the union of the acting entity and all
1125
- other entities that control, are controlled by, or are under common
1126
- control with that entity. For the purposes of this definition,
1127
- "control" means (i) the power, direct or indirect, to cause the
1128
- direction or management of such entity, whether by contract or
1129
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
1130
- outstanding shares, or (iii) beneficial ownership of such entity.
1131
-
1132
- "You" (or "Your") shall mean an individual or Legal Entity
1133
- exercising permissions granted by this License.
1134
-
1135
- "Source" form shall mean the preferred form for making modifications,
1136
- including but not limited to software source code, documentation
1137
- source, and configuration files.
1138
-
1139
- "Object" form shall mean any form resulting from mechanical
1140
- transformation or translation of a Source form, including but
1141
- not limited to compiled object code, generated documentation,
1142
- and conversions to other media types.
1143
-
1144
- "Work" shall mean the work of authorship, whether in Source or
1145
- Object form, made available under the License, as indicated by a
1146
- copyright notice that is included in or attached to the work
1147
- (an example is provided in the Appendix below).
1148
-
1149
- "Derivative Works" shall mean any work, whether in Source or Object
1150
- form, that is based on (or derived from) the Work and for which the
1151
- editorial revisions, annotations, elaborations, or other modifications
1152
- represent, as a whole, an original work of authorship. For the purposes
1153
- of this License, Derivative Works shall not include works that remain
1154
- separable from, or merely link (or bind by name) to the interfaces of,
1155
- the Work and Derivative Works thereof.
1156
-
1157
- "Contribution" shall mean any work of authorship, including
1158
- the original version of the Work and any modifications or additions
1159
- to that Work or Derivative Works thereof, that is intentionally
1160
- submitted to Licensor for inclusion in the Work by the copyright owner
1161
- or by an individual or Legal Entity authorized to submit on behalf of
1162
- the copyright owner. For the purposes of this definition, "submitted"
1163
- means any form of electronic, verbal, or written communication sent
1164
- to the Licensor or its representatives, including but not limited to
1165
- communication on electronic mailing lists, source code control systems,
1166
- and issue tracking systems that are managed by, or on behalf of, the
1167
- Licensor for the purpose of discussing and improving the Work, but
1168
- excluding communication that is conspicuously marked or otherwise
1169
- designated in writing by the copyright owner as "Not a Contribution."
1170
-
1171
- "Contributor" shall mean Licensor and any individual or Legal Entity
1172
- on behalf of whom a Contribution has been received by Licensor and
1173
- subsequently incorporated within the Work.
1174
-
1175
- 2. Grant of Copyright License. Subject to the terms and conditions of
1176
- this License, each Contributor hereby grants to You a perpetual,
1177
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1178
- copyright license to reproduce, prepare Derivative Works of,
1179
- publicly display, publicly perform, sublicense, and distribute the
1180
- Work and such Derivative Works in Source or Object form.
1181
-
1182
- 3. Grant of Patent License. Subject to the terms and conditions of
1183
- this License, each Contributor hereby grants to You a perpetual,
1184
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1185
- (except as stated in this section) patent license to make, have made,
1186
- use, offer to sell, sell, import, and otherwise transfer the Work,
1187
- where such license applies only to those patent claims licensable
1188
- by such Contributor that are necessarily infringed by their
1189
- Contribution(s) alone or by combination of their Contribution(s)
1190
- with the Work to which such Contribution(s) was submitted. If You
1191
- institute patent litigation against any entity (including a
1192
- cross-claim or counterclaim in a lawsuit) alleging that the Work
1193
- or a Contribution incorporated within the Work constitutes direct
1194
- or contributory patent infringement, then any patent licenses
1195
- granted to You under this License for that Work shall terminate
1196
- as of the date such litigation is filed.
1197
-
1198
- 4. Redistribution. You may reproduce and distribute copies of the
1199
- Work or Derivative Works thereof in any medium, with or without
1200
- modifications, and in Source or Object form, provided that You
1201
- meet the following conditions:
1202
-
1203
- (a) You must give any other recipients of the Work or
1204
- Derivative Works a copy of this License; and
1205
-
1206
- (b) You must cause any modified files to carry prominent notices
1207
- stating that You changed the files; and
1208
-
1209
- (c) You must retain, in the Source form of any Derivative Works
1210
- that You distribute, all copyright, patent, trademark, and
1211
- attribution notices from the Source form of the Work,
1212
- excluding those notices that do not pertain to any part of
1213
- the Derivative Works; and
1214
-
1215
- (d) If the Work includes a "NOTICE" text file as part of its
1216
- distribution, then any Derivative Works that You distribute must
1217
- include a readable copy of the attribution notices contained
1218
- within such NOTICE file, excluding those notices that do not
1219
- pertain to any part of the Derivative Works, in at least one
1220
- of the following places: within a NOTICE text file distributed
1221
- as part of the Derivative Works; within the Source form or
1222
- documentation, if provided along with the Derivative Works; or,
1223
- within a display generated by the Derivative Works, if and
1224
- wherever such third-party notices normally appear. The contents
1225
- of the NOTICE file are for informational purposes only and
1226
- do not modify the License. You may add Your own attribution
1227
- notices within Derivative Works that You distribute, alongside
1228
- or as an addendum to the NOTICE text from the Work, provided
1229
- that such additional attribution notices cannot be construed
1230
- as modifying the License.
1231
-
1232
- You may add Your own copyright statement to Your modifications and
1233
- may provide additional or different license terms and conditions
1234
- for use, reproduction, or distribution of Your modifications, or
1235
- for any such Derivative Works as a whole, provided Your use,
1236
- reproduction, and distribution of the Work otherwise complies with
1237
- the conditions stated in this License.
1238
-
1239
- 5. Submission of Contributions. Unless You explicitly state otherwise,
1240
- any Contribution intentionally submitted for inclusion in the Work
1241
- by You to the Licensor shall be under the terms and conditions of
1242
- this License, without any additional terms or conditions.
1243
- Notwithstanding the above, nothing herein shall supersede or modify
1244
- the terms of any separate license agreement you may have executed
1245
- with Licensor regarding such Contributions.
1246
-
1247
- 6. Trademarks. This License does not grant permission to use the trade
1248
- names, trademarks, service marks, or product names of the Licensor,
1249
- except as required for reasonable and customary use in describing the
1250
- origin of the Work and reproducing the content of the NOTICE file.
1251
-
1252
- 7. Disclaimer of Warranty. Unless required by applicable law or
1253
- agreed to in writing, Licensor provides the Work (and each
1254
- Contributor provides its Contributions) on an "AS IS" BASIS,
1255
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1256
- implied, including, without limitation, any warranties or conditions
1257
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1258
- PARTICULAR PURPOSE. You are solely responsible for determining the
1259
- appropriateness of using or redistributing the Work and assume any
1260
- risks associated with Your exercise of permissions under this License.
1261
-
1262
- 8. Limitation of Liability. In no event and under no legal theory,
1263
- whether in tort (including negligence), contract, or otherwise,
1264
- unless required by applicable law (such as deliberate and grossly
1265
- negligent acts) or agreed to in writing, shall any Contributor be
1266
- liable to You for damages, including any direct, indirect, special,
1267
- incidental, or consequential damages of any character arising as a
1268
- result of this License or out of the use or inability to use the
1269
- Work (including but not limited to damages for loss of goodwill,
1270
- work stoppage, computer failure or malfunction, or any and all
1271
- other commercial damages or losses), even if such Contributor
1272
- has been advised of the possibility of such damages.
1273
-
1274
- 9. Accepting Warranty or Additional Liability. While redistributing
1275
- the Work or Derivative Works thereof, You may choose to offer,
1276
- and charge a fee for, acceptance of support, warranty, indemnity,
1277
- or other liability obligations and/or rights consistent with this
1278
- License. However, in accepting such obligations, You may act only
1279
- on Your own behalf and on Your sole responsibility, not on behalf
1280
- of any other Contributor, and only if You agree to indemnify,
1281
- defend, and hold each Contributor harmless for any liability
1282
- incurred by, or claims asserted against, such Contributor by reason
1283
- of your accepting any such warranty or additional liability.
1284
-
1285
- END OF TERMS AND CONDITIONS
1286
-
1287
- APPENDIX: How to apply the Apache License to your work.
1288
-
1289
- To apply the Apache License to your work, attach the following
1290
- boilerplate notice, with the fields enclosed by brackets "[]"
1291
- replaced with your own identifying information. (Don't include
1292
- the brackets!) The text should be enclosed in the appropriate
1293
- comment syntax for the file format. We also recommend that a
1294
- file or class name and description of purpose be included on the
1295
- same "printed page" as the copyright notice for easier
1296
- identification within third-party archives.
1297
-
1298
- Copyright [yyyy] [name of copyright owner]
1299
-
1300
- Licensed under the Apache License, Version 2.0 (the "License");
1301
- you may not use this file except in compliance with the License.
1302
- You may obtain a copy of the License at
1303
-
1304
- http://www.apache.org/licenses/LICENSE-2.0
1305
-
1306
- Unless required by applicable law or agreed to in writing, software
1307
- distributed under the License is distributed on an "AS IS" BASIS,
1308
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1309
- See the License for the specific language governing permissions and
1310
- limitations under the License.
1311
-
1312
- ----
1313
-
1314
- @opentelemetry/resources 1.30.1 - Apache-2.0
918
+ @opentelemetry/resources 2.1.0 - Apache-2.0
1315
919
  https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources
1316
920
 
1317
921
  Author: OpenTelemetry Authors
@@ -1520,7 +1124,7 @@ Apache License
1520
1124
 
1521
1125
  ----
1522
1126
 
1523
- @opentelemetry/sdk-metrics 1.30.1 - Apache-2.0
1127
+ @opentelemetry/sdk-metrics 2.1.0 - Apache-2.0
1524
1128
  https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/sdk-metrics
1525
1129
 
1526
1130
  Author: OpenTelemetry Authors
@@ -1729,7 +1333,7 @@ Apache License
1729
1333
 
1730
1334
  ----
1731
1335
 
1732
- @opentelemetry/sdk-trace-base 1.30.1 - Apache-2.0
1336
+ @opentelemetry/sdk-trace-base 2.1.0 - Apache-2.0
1733
1337
  https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-base
1734
1338
 
1735
1339
  Author: OpenTelemetry Authors
@@ -1938,7 +1542,7 @@ Apache License
1938
1542
 
1939
1543
  ----
1940
1544
 
1941
- @opentelemetry/sdk-trace-node 1.30.1 - Apache-2.0
1545
+ @opentelemetry/sdk-trace-node 2.1.0 - Apache-2.0
1942
1546
  https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node
1943
1547
 
1944
1548
  Author: OpenTelemetry Authors
@@ -2147,7 +1751,7 @@ Apache License
2147
1751
 
2148
1752
  ----
2149
1753
 
2150
- @opentelemetry/semantic-conventions 1.28.0 - Apache-2.0
1754
+ @opentelemetry/semantic-conventions 1.40.0 - Apache-2.0
2151
1755
  https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions
2152
1756
 
2153
1757
  Author: OpenTelemetry Authors
@@ -3722,5 +3326,5 @@ THE SOFTWARE.
3722
3326
 
3723
3327
  ----
3724
3328
 
3725
- workspace-tools 0.41.0 - MIT
3726
- https://github.com/microsoft/workspace-tools
3329
+ workspace-tools 0.41.7 - MIT
3330
+ https://github.com/microsoft/lage
package/README.md CHANGED
@@ -10,54 +10,35 @@ Currently, this library only supports [Tracing](https://opentelemetry.io/docs/co
10
10
 
11
11
  1. Create a client:
12
12
 
13
- ```ts
14
- const telemetryClient = new TelemetryClient({
15
- serviceNamespace: 'cloudpack',
16
- serviceName: 'cli',
17
- productVersion: '1.2.3',
18
- instrumentationKey: '<Application insights Instrumentation Key>',
19
- logLevel: 'verbose',
20
- });
21
- ```
22
-
23
- 2. Add shared attributes
24
-
25
- ```ts
26
- telemetryClient.setSharedSpanAttribute('sessionId', 'my-session-id');
27
- ```
28
-
29
- These attributes will get added to all spans.
30
-
31
- 3. Get the tracer
32
-
33
- ```ts
34
- const tracer = telemetryClient.getTracer();
35
- ```
36
-
37
- 4. Create a span / add events / end the span
38
-
39
- ```ts
40
- const span = tracer.createSpan('my-unit-of-work');
41
- // do work
42
- span.addEvent('my-event', { myCustomAttribute: 'my-custom-value' });
43
-
44
- try {
45
- // do more work
46
- } catch (err) {
47
- span.recordException(err);
48
- }
49
-
50
- // end the span when the unit-of-work completed.
51
- span.end();
52
- ```
53
-
54
- [Lear more about spans](https://opentelemetry.io/docs/instrumentation/js/instrumentation/#create-spans)
55
-
56
- 5. Shutdown TelemetryClient before application exists
57
-
58
- ```ts
59
- telemetryClient.shutdown();
60
- ```
61
-
62
- - This will force flush all the remaining data to remote servers and prevent more data to be collected.
63
- - Make sure that all spans have been ended before shuting down the telemetry client
13
+ ```ts
14
+ const appPath = 'path to your app';
15
+ const telemetryApi = await startTelemetry({
16
+ serviceName: 'service',
17
+ productVersion: '1.2.3',
18
+ logLevel: 'VERBOSE',
19
+ connectionStrings: {
20
+ [appPath]: '<Application Insights instrumentation key>',
21
+ },
22
+ });
23
+ const telemetryClient = telemetryApi.clients[appPath];
24
+ ```
25
+
26
+ 2. Create a span / add events / end the span ([learn more about spans](https://opentelemetry.io/docs/instrumentation/js/instrumentation/#create-spans))
27
+
28
+ ```ts
29
+ await telemetryClient.tracer.startActiveSpan('my-unit-of-work', async (span) => {
30
+ // do work
31
+ span.addEvent('my-event', { myCustomAttribute: 'my-custom-value' });
32
+
33
+ // do more work
34
+ });
35
+ // span ends automatically
36
+ ```
37
+
38
+ 3. Shut down TelemetryClient before application exists.
39
+ - This will force flush all the remaining data to remote servers and prevent more data to be collected.
40
+ - Make sure that all spans have been ended before shuting down the telemetry client
41
+
42
+ ```ts
43
+ await telemetryApi.shutdown();
44
+ ```