@microsoft/applicationinsights-common 2.8.4-nightly.2205-08 → 2.8.4

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.
Files changed (118) hide show
  1. package/browser/applicationinsights-common.integrity.json +9 -9
  2. package/browser/applicationinsights-common.js +174 -127
  3. package/browser/applicationinsights-common.js.map +1 -1
  4. package/browser/applicationinsights-common.min.js +2 -2
  5. package/browser/applicationinsights-common.min.js.map +1 -1
  6. package/dist/applicationinsights-common.api.json +81 -501
  7. package/dist/applicationinsights-common.api.md +24 -23
  8. package/dist/applicationinsights-common.d.ts +33 -91
  9. package/dist/applicationinsights-common.js +174 -127
  10. package/dist/applicationinsights-common.js.map +1 -1
  11. package/dist/applicationinsights-common.min.js +2 -2
  12. package/dist/applicationinsights-common.min.js.map +1 -1
  13. package/dist/applicationinsights-common.rollup.d.ts +33 -91
  14. package/dist-esm/ConnectionStringParser.js +1 -1
  15. package/dist-esm/Constants.js +1 -1
  16. package/dist-esm/DomHelperFuncs.js +1 -1
  17. package/dist-esm/Enums.js +6 -6
  18. package/dist-esm/Enums.js.map +1 -1
  19. package/dist-esm/HelperFuncs.js +1 -1
  20. package/dist-esm/Interfaces/ConnectionString.js +1 -1
  21. package/dist-esm/Interfaces/Context/IApplication.js +1 -1
  22. package/dist-esm/Interfaces/Context/IDevice.js +1 -1
  23. package/dist-esm/Interfaces/Context/IInternal.js +1 -1
  24. package/dist-esm/Interfaces/Context/ILocation.js +1 -1
  25. package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
  26. package/dist-esm/Interfaces/Context/ISample.js +1 -1
  27. package/dist-esm/Interfaces/Context/ISession.js +1 -1
  28. package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
  29. package/dist-esm/Interfaces/Context/IUser.js +1 -1
  30. package/dist-esm/Interfaces/Context/IWeb.js +1 -1
  31. package/dist-esm/Interfaces/Contracts/AvailabilityData.js +1 -1
  32. package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
  33. package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
  34. package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
  35. package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
  36. package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
  37. package/dist-esm/Interfaces/Contracts/IData.js +1 -1
  38. package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
  39. package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
  40. package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
  41. package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
  42. package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
  43. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
  44. package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
  45. package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
  46. package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
  47. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
  48. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
  49. package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
  50. package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
  51. package/dist-esm/Interfaces/Contracts/SeverityLevel.js +6 -6
  52. package/dist-esm/Interfaces/Contracts/SeverityLevel.js.map +1 -1
  53. package/dist-esm/Interfaces/IAppInsights.js +1 -1
  54. package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
  55. package/dist-esm/Interfaces/IConfig.js +1 -1
  56. package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
  57. package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
  58. package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
  59. package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
  60. package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
  61. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  62. package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
  63. package/dist-esm/Interfaces/IPartC.js +1 -1
  64. package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
  65. package/dist-esm/Interfaces/IRequestContext.js +1 -1
  66. package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
  67. package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
  68. package/dist-esm/Interfaces/PartAExtensions.js +1 -1
  69. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
  70. package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
  71. package/dist-esm/RequestResponseHeaders.js +10 -10
  72. package/dist-esm/RequestResponseHeaders.js.map +1 -1
  73. package/dist-esm/StorageHelperFuncs.js +7 -7
  74. package/dist-esm/StorageHelperFuncs.js.map +1 -1
  75. package/dist-esm/Telemetry/Common/Data.js +3 -3
  76. package/dist-esm/Telemetry/Common/Data.js.map +1 -1
  77. package/dist-esm/Telemetry/Common/DataPoint.js +9 -9
  78. package/dist-esm/Telemetry/Common/DataPoint.js.map +1 -1
  79. package/dist-esm/Telemetry/Common/DataSanitizer.js +26 -26
  80. package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
  81. package/dist-esm/Telemetry/Common/Envelope.js +7 -7
  82. package/dist-esm/Telemetry/Common/Envelope.js.map +1 -1
  83. package/dist-esm/Telemetry/Event.js +5 -5
  84. package/dist-esm/Telemetry/Event.js.map +1 -1
  85. package/dist-esm/Telemetry/Exception.js +18 -18
  86. package/dist-esm/Telemetry/Exception.js.map +1 -1
  87. package/dist-esm/Telemetry/Metric.js +4 -4
  88. package/dist-esm/Telemetry/Metric.js.map +1 -1
  89. package/dist-esm/Telemetry/PageView.js +8 -8
  90. package/dist-esm/Telemetry/PageView.js.map +1 -1
  91. package/dist-esm/Telemetry/PageViewPerformance.js +12 -12
  92. package/dist-esm/Telemetry/PageViewPerformance.js.map +1 -1
  93. package/dist-esm/Telemetry/RemoteDependencyData.js +22 -22
  94. package/dist-esm/Telemetry/RemoteDependencyData.js.map +1 -1
  95. package/dist-esm/Telemetry/Trace.js +5 -5
  96. package/dist-esm/Telemetry/Trace.js.map +1 -1
  97. package/dist-esm/TelemetryItemCreator.js +1 -1
  98. package/dist-esm/UrlHelperFuncs.js +1 -1
  99. package/dist-esm/Util.js +46 -3
  100. package/dist-esm/Util.js.map +1 -1
  101. package/dist-esm/applicationinsights-common.js +3 -4
  102. package/dist-esm/applicationinsights-common.js.map +1 -1
  103. package/package.json +54 -57
  104. package/src/Interfaces/Context/ITelemetryTrace.ts +6 -0
  105. package/src/Util.ts +49 -2
  106. package/src/applicationinsights-common.ts +6 -6
  107. package/types/Interfaces/Context/ITelemetryTrace.d.ts +5 -0
  108. package/types/Util.d.ts +9 -1
  109. package/types/applicationinsights-common.d.ts +2 -4
  110. package/types/tsdoc-metadata.json +1 -1
  111. package/dist-esm/Interfaces/ITraceParent.js +0 -8
  112. package/dist-esm/Interfaces/ITraceParent.js.map +0 -1
  113. package/dist-esm/W3cTraceParent.js +0 -192
  114. package/dist-esm/W3cTraceParent.js.map +0 -1
  115. package/src/Interfaces/ITraceParent.ts +0 -38
  116. package/src/W3cTraceParent.ts +0 -219
  117. package/types/Interfaces/ITraceParent.d.ts +0 -32
  118. package/types/W3cTraceParent.d.ts +0 -59
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.24.0",
4
+ "toolVersion": "7.24.2",
5
5
  "schemaVersion": 1005,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -556,6 +556,69 @@
556
556
  "endIndex": 2
557
557
  }
558
558
  },
559
+ {
560
+ "kind": "Function",
561
+ "canonicalReference": "@microsoft/applicationinsights-common!createDistributedTraceContextFromTrace:function(1)",
562
+ "docComment": "/**\n * Creates a IDistributedTraceContext from an optional telemetryTrace\n *\n * @param telemetryTrace - The telemetryTrace instance that is being wrapped\n *\n * @param parentCtx - An optional parent distributed trace instance, almost always undefined as this scenario is only used in the case of multiple property handlers.\n *\n * @returns A new IDistributedTraceContext instance that is backed by the telemetryTrace or temporary object\n */\n",
563
+ "excerptTokens": [
564
+ {
565
+ "kind": "Content",
566
+ "text": "export declare function createDistributedTraceContextFromTrace(telemetryTrace?: "
567
+ },
568
+ {
569
+ "kind": "Reference",
570
+ "text": "ITelemetryTrace",
571
+ "canonicalReference": "@microsoft/applicationinsights-common!ITelemetryTrace:interface"
572
+ },
573
+ {
574
+ "kind": "Content",
575
+ "text": ", parentCtx?: "
576
+ },
577
+ {
578
+ "kind": "Reference",
579
+ "text": "IDistributedTraceContext",
580
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDistributedTraceContext:interface"
581
+ },
582
+ {
583
+ "kind": "Content",
584
+ "text": "): "
585
+ },
586
+ {
587
+ "kind": "Reference",
588
+ "text": "IDistributedTraceContext",
589
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDistributedTraceContext:interface"
590
+ },
591
+ {
592
+ "kind": "Content",
593
+ "text": ";"
594
+ }
595
+ ],
596
+ "returnTypeTokenRange": {
597
+ "startIndex": 5,
598
+ "endIndex": 6
599
+ },
600
+ "releaseTag": "Public",
601
+ "overloadIndex": 1,
602
+ "parameters": [
603
+ {
604
+ "parameterName": "telemetryTrace",
605
+ "parameterTypeTokenRange": {
606
+ "startIndex": 1,
607
+ "endIndex": 2
608
+ },
609
+ "isOptional": true
610
+ },
611
+ {
612
+ "parameterName": "parentCtx",
613
+ "parameterTypeTokenRange": {
614
+ "startIndex": 3,
615
+ "endIndex": 4
616
+ },
617
+ "isOptional": true
618
+ }
619
+ ],
620
+ "name": "createDistributedTraceContextFromTrace"
621
+ },
559
622
  {
560
623
  "kind": "Function",
561
624
  "canonicalReference": "@microsoft/applicationinsights-common!createDomEvent:function(1)",
@@ -740,99 +803,6 @@
740
803
  ],
741
804
  "name": "createTelemetryItem"
742
805
  },
743
- {
744
- "kind": "Function",
745
- "canonicalReference": "@microsoft/applicationinsights-common!createTraceParent:function(1)",
746
- "docComment": "/**\n * Create a new ITraceParent instance using the provided values.\n *\n * @param traceId - The traceId to use, when invalid a new random W3C id will be generated.\n *\n * @param spanId - The parent/span id to use, a new random value will be generated if it is invalid.\n *\n * @param flags - The traceFlags to use, defaults to zero (0) if not supplied or invalid\n *\n * @param version - The version to used, defaults to version \"01\" if not supplied or invalid.\n *\n * @returns \n */\n",
747
- "excerptTokens": [
748
- {
749
- "kind": "Content",
750
- "text": "export declare function createTraceParent(traceId?: "
751
- },
752
- {
753
- "kind": "Content",
754
- "text": "string"
755
- },
756
- {
757
- "kind": "Content",
758
- "text": ", spanId?: "
759
- },
760
- {
761
- "kind": "Content",
762
- "text": "string"
763
- },
764
- {
765
- "kind": "Content",
766
- "text": ", flags?: "
767
- },
768
- {
769
- "kind": "Content",
770
- "text": "number"
771
- },
772
- {
773
- "kind": "Content",
774
- "text": ", version?: "
775
- },
776
- {
777
- "kind": "Content",
778
- "text": "string"
779
- },
780
- {
781
- "kind": "Content",
782
- "text": "): "
783
- },
784
- {
785
- "kind": "Reference",
786
- "text": "ITraceParent",
787
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent:interface"
788
- },
789
- {
790
- "kind": "Content",
791
- "text": ";"
792
- }
793
- ],
794
- "returnTypeTokenRange": {
795
- "startIndex": 9,
796
- "endIndex": 10
797
- },
798
- "releaseTag": "Public",
799
- "overloadIndex": 1,
800
- "parameters": [
801
- {
802
- "parameterName": "traceId",
803
- "parameterTypeTokenRange": {
804
- "startIndex": 1,
805
- "endIndex": 2
806
- },
807
- "isOptional": true
808
- },
809
- {
810
- "parameterName": "spanId",
811
- "parameterTypeTokenRange": {
812
- "startIndex": 3,
813
- "endIndex": 4
814
- },
815
- "isOptional": true
816
- },
817
- {
818
- "parameterName": "flags",
819
- "parameterTypeTokenRange": {
820
- "startIndex": 5,
821
- "endIndex": 6
822
- },
823
- "isOptional": true
824
- },
825
- {
826
- "parameterName": "version",
827
- "parameterTypeTokenRange": {
828
- "startIndex": 7,
829
- "endIndex": 8
830
- },
831
- "isOptional": true
832
- }
833
- ],
834
- "name": "createTraceParent"
835
- },
836
806
  {
837
807
  "kind": "Variable",
838
808
  "canonicalReference": "@microsoft/applicationinsights-common!CtxTagKeys:var",
@@ -4367,79 +4337,6 @@
4367
4337
  }
4368
4338
  ]
4369
4339
  },
4370
- {
4371
- "kind": "Function",
4372
- "canonicalReference": "@microsoft/applicationinsights-common!findW3cTraceParent:function(1)",
4373
- "docComment": "/**\n * Helper function to fetch the passed traceparent from the page, looking for it as a meta-tag or a Server-Timing header.\n *\n * @returns \n */\n",
4374
- "excerptTokens": [
4375
- {
4376
- "kind": "Content",
4377
- "text": "export declare function findW3cTraceParent(): "
4378
- },
4379
- {
4380
- "kind": "Reference",
4381
- "text": "ITraceParent",
4382
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent:interface"
4383
- },
4384
- {
4385
- "kind": "Content",
4386
- "text": ";"
4387
- }
4388
- ],
4389
- "returnTypeTokenRange": {
4390
- "startIndex": 1,
4391
- "endIndex": 2
4392
- },
4393
- "releaseTag": "Public",
4394
- "overloadIndex": 1,
4395
- "parameters": [],
4396
- "name": "findW3cTraceParent"
4397
- },
4398
- {
4399
- "kind": "Function",
4400
- "canonicalReference": "@microsoft/applicationinsights-common!formatTraceParent:function(1)",
4401
- "docComment": "/**\n * Format the ITraceParent value as a string using the supported and know version formats. So even if the passed traceParent is a later version the string value returned from this function will convert it to only the known version formats. This currently only supports version \"00\" and invalid \"ff\"\n *\n * @param value - The parsed traceParent value\n *\n * @returns \n */\n",
4402
- "excerptTokens": [
4403
- {
4404
- "kind": "Content",
4405
- "text": "export declare function formatTraceParent(value: "
4406
- },
4407
- {
4408
- "kind": "Reference",
4409
- "text": "ITraceParent",
4410
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent:interface"
4411
- },
4412
- {
4413
- "kind": "Content",
4414
- "text": "): "
4415
- },
4416
- {
4417
- "kind": "Content",
4418
- "text": "string"
4419
- },
4420
- {
4421
- "kind": "Content",
4422
- "text": ";"
4423
- }
4424
- ],
4425
- "returnTypeTokenRange": {
4426
- "startIndex": 3,
4427
- "endIndex": 4
4428
- },
4429
- "releaseTag": "Public",
4430
- "overloadIndex": 1,
4431
- "parameters": [
4432
- {
4433
- "parameterName": "value",
4434
- "parameterTypeTokenRange": {
4435
- "startIndex": 1,
4436
- "endIndex": 2
4437
- },
4438
- "isOptional": false
4439
- }
4440
- ],
4441
- "name": "formatTraceParent"
4442
- },
4443
4340
  {
4444
4341
  "kind": "Function",
4445
4342
  "canonicalReference": "@microsoft/applicationinsights-common!getExtensionByName:function(1)",
@@ -13319,184 +13216,6 @@
13319
13216
  ],
13320
13217
  "name": "isInternalApplicationInsightsEndpoint"
13321
13218
  },
13322
- {
13323
- "kind": "Function",
13324
- "canonicalReference": "@microsoft/applicationinsights-common!isSampledFlag:function(1)",
13325
- "docComment": "/**\n * Is the parsed traceParent indicating that the trace is currently sampled.\n *\n * @param value - The parsed traceParent value\n *\n * @returns \n */\n",
13326
- "excerptTokens": [
13327
- {
13328
- "kind": "Content",
13329
- "text": "export declare function isSampledFlag(value: "
13330
- },
13331
- {
13332
- "kind": "Reference",
13333
- "text": "ITraceParent",
13334
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent:interface"
13335
- },
13336
- {
13337
- "kind": "Content",
13338
- "text": "): "
13339
- },
13340
- {
13341
- "kind": "Content",
13342
- "text": "boolean"
13343
- },
13344
- {
13345
- "kind": "Content",
13346
- "text": ";"
13347
- }
13348
- ],
13349
- "returnTypeTokenRange": {
13350
- "startIndex": 3,
13351
- "endIndex": 4
13352
- },
13353
- "releaseTag": "Public",
13354
- "overloadIndex": 1,
13355
- "parameters": [
13356
- {
13357
- "parameterName": "value",
13358
- "parameterTypeTokenRange": {
13359
- "startIndex": 1,
13360
- "endIndex": 2
13361
- },
13362
- "isOptional": false
13363
- }
13364
- ],
13365
- "name": "isSampledFlag"
13366
- },
13367
- {
13368
- "kind": "Function",
13369
- "canonicalReference": "@microsoft/applicationinsights-common!isValidSpanId:function(1)",
13370
- "docComment": "/**\n * Is the provided W3c span id (aka. parent id) a valid string representation, it must be a 16-character string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7. If all characters are zero (0000000000000000) this is considered an invalid value.\n *\n * @param value - The W3c span id to be validated\n *\n * @returns true if valid otherwise false\n */\n",
13371
- "excerptTokens": [
13372
- {
13373
- "kind": "Content",
13374
- "text": "export declare function isValidSpanId(value: "
13375
- },
13376
- {
13377
- "kind": "Content",
13378
- "text": "string"
13379
- },
13380
- {
13381
- "kind": "Content",
13382
- "text": "): "
13383
- },
13384
- {
13385
- "kind": "Content",
13386
- "text": "boolean"
13387
- },
13388
- {
13389
- "kind": "Content",
13390
- "text": ";"
13391
- }
13392
- ],
13393
- "returnTypeTokenRange": {
13394
- "startIndex": 3,
13395
- "endIndex": 4
13396
- },
13397
- "releaseTag": "Public",
13398
- "overloadIndex": 1,
13399
- "parameters": [
13400
- {
13401
- "parameterName": "value",
13402
- "parameterTypeTokenRange": {
13403
- "startIndex": 1,
13404
- "endIndex": 2
13405
- },
13406
- "isOptional": false
13407
- }
13408
- ],
13409
- "name": "isValidSpanId"
13410
- },
13411
- {
13412
- "kind": "Function",
13413
- "canonicalReference": "@microsoft/applicationinsights-common!isValidTraceId:function(1)",
13414
- "docComment": "/**\n * Is the provided W3c Trace Id a valid string representation, it must be a 32-character string of lowercase hexadecimal characters for example, 4bf92f3577b34da6a3ce929d0e0e4736. If all characters as zero (00000000000000000000000000000000) it will be considered an invalid value.\n *\n * @param value - The W3c trace Id to be validated\n *\n * @returns true if valid otherwise false\n */\n",
13415
- "excerptTokens": [
13416
- {
13417
- "kind": "Content",
13418
- "text": "export declare function isValidTraceId(value: "
13419
- },
13420
- {
13421
- "kind": "Content",
13422
- "text": "string"
13423
- },
13424
- {
13425
- "kind": "Content",
13426
- "text": "): "
13427
- },
13428
- {
13429
- "kind": "Content",
13430
- "text": "boolean"
13431
- },
13432
- {
13433
- "kind": "Content",
13434
- "text": ";"
13435
- }
13436
- ],
13437
- "returnTypeTokenRange": {
13438
- "startIndex": 3,
13439
- "endIndex": 4
13440
- },
13441
- "releaseTag": "Public",
13442
- "overloadIndex": 1,
13443
- "parameters": [
13444
- {
13445
- "parameterName": "value",
13446
- "parameterTypeTokenRange": {
13447
- "startIndex": 1,
13448
- "endIndex": 2
13449
- },
13450
- "isOptional": false
13451
- }
13452
- ],
13453
- "name": "isValidTraceId"
13454
- },
13455
- {
13456
- "kind": "Function",
13457
- "canonicalReference": "@microsoft/applicationinsights-common!isValidTraceParent:function(1)",
13458
- "docComment": "/**\n * Validates that the provided ITraceParent instance conforms to the currently supported specifications\n *\n * @param value - \n *\n * @returns \n */\n",
13459
- "excerptTokens": [
13460
- {
13461
- "kind": "Content",
13462
- "text": "export declare function isValidTraceParent(value: "
13463
- },
13464
- {
13465
- "kind": "Reference",
13466
- "text": "ITraceParent",
13467
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent:interface"
13468
- },
13469
- {
13470
- "kind": "Content",
13471
- "text": "): "
13472
- },
13473
- {
13474
- "kind": "Content",
13475
- "text": "boolean"
13476
- },
13477
- {
13478
- "kind": "Content",
13479
- "text": ";"
13480
- }
13481
- ],
13482
- "returnTypeTokenRange": {
13483
- "startIndex": 3,
13484
- "endIndex": 4
13485
- },
13486
- "releaseTag": "Public",
13487
- "overloadIndex": 1,
13488
- "parameters": [
13489
- {
13490
- "parameterName": "value",
13491
- "parameterTypeTokenRange": {
13492
- "startIndex": 1,
13493
- "endIndex": 2
13494
- },
13495
- "isOptional": false
13496
- }
13497
- ],
13498
- "name": "isValidTraceParent"
13499
- },
13500
13219
  {
13501
13220
  "kind": "Interface",
13502
13221
  "canonicalReference": "@microsoft/applicationinsights-common!ITelemetryContext:interface",
@@ -13875,107 +13594,12 @@
13875
13594
  },
13876
13595
  {
13877
13596
  "kind": "PropertySignature",
13878
- "canonicalReference": "@microsoft/applicationinsights-common!ITelemetryTrace#traceID:member",
13879
- "docComment": "/**\n * Trace id\n */\n",
13880
- "excerptTokens": [
13881
- {
13882
- "kind": "Content",
13883
- "text": "traceID?: "
13884
- },
13885
- {
13886
- "kind": "Content",
13887
- "text": "string"
13888
- },
13889
- {
13890
- "kind": "Content",
13891
- "text": ";"
13892
- }
13893
- ],
13894
- "isOptional": true,
13895
- "releaseTag": "Public",
13896
- "name": "traceID",
13897
- "propertyTypeTokenRange": {
13898
- "startIndex": 1,
13899
- "endIndex": 2
13900
- }
13901
- },
13902
- {
13903
- "kind": "PropertySignature",
13904
- "canonicalReference": "@microsoft/applicationinsights-common!ITelemetryTrace#traceState:member",
13905
- "docComment": "/**\n * Trace state\n */\n",
13906
- "excerptTokens": [
13907
- {
13908
- "kind": "Content",
13909
- "text": "traceState?: "
13910
- },
13911
- {
13912
- "kind": "Reference",
13913
- "text": "ITraceState",
13914
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceState:interface"
13915
- },
13916
- {
13917
- "kind": "Content",
13918
- "text": ";"
13919
- }
13920
- ],
13921
- "isOptional": true,
13922
- "releaseTag": "Public",
13923
- "name": "traceState",
13924
- "propertyTypeTokenRange": {
13925
- "startIndex": 1,
13926
- "endIndex": 2
13927
- }
13928
- }
13929
- ],
13930
- "extendsTokenRanges": []
13931
- },
13932
- {
13933
- "kind": "Interface",
13934
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent:interface",
13935
- "docComment": "/**\n * This interface represents the components of a W3C traceparent header\n */\n",
13936
- "excerptTokens": [
13937
- {
13938
- "kind": "Content",
13939
- "text": "export interface ITraceParent "
13940
- }
13941
- ],
13942
- "releaseTag": "Public",
13943
- "name": "ITraceParent",
13944
- "members": [
13945
- {
13946
- "kind": "PropertySignature",
13947
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent#spanId:member",
13948
- "docComment": "/**\n * This is the ID of the current request as known by the caller (in some tracing systems, this is also known as the parent-id, where a span is the execution of a client request). It is represented as an 16-character string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7. All bytes as zero (0000000000000000) is considered an invalid value.\n */\n",
13597
+ "canonicalReference": "@microsoft/applicationinsights-common!ITelemetryTrace#traceFlags:member",
13598
+ "docComment": "/**\n * An integer representation of the W3C TraceContext trace-flags. https://www.w3.org/TR/trace-context/#trace-flags\n */\n",
13949
13599
  "excerptTokens": [
13950
13600
  {
13951
13601
  "kind": "Content",
13952
- "text": "spanId: "
13953
- },
13954
- {
13955
- "kind": "Content",
13956
- "text": "string"
13957
- },
13958
- {
13959
- "kind": "Content",
13960
- "text": ";"
13961
- }
13962
- ],
13963
- "isOptional": false,
13964
- "releaseTag": "Public",
13965
- "name": "spanId",
13966
- "propertyTypeTokenRange": {
13967
- "startIndex": 1,
13968
- "endIndex": 2
13969
- }
13970
- },
13971
- {
13972
- "kind": "PropertySignature",
13973
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent#traceFlags:member",
13974
- "docComment": "/**\n * An 8-bit value of flags that controls tracing such as sampling, trace level, etc. These flags are recommendations given by the caller rather than strict rules to follow. As this is a bit field, you cannot interpret flags by decoding the hex value and looking at the resulting number. For example, a flag 00000001 could be encoded as 01 in hex, or 09 in hex if present with the flag 00001000. A common mistake in bit fields is forgetting to mask when interpreting flags.\n */\n",
13975
- "excerptTokens": [
13976
- {
13977
- "kind": "Content",
13978
- "text": "traceFlags: "
13602
+ "text": "traceFlags?: "
13979
13603
  },
13980
13604
  {
13981
13605
  "kind": "Content",
@@ -13986,7 +13610,7 @@
13986
13610
  "text": ";"
13987
13611
  }
13988
13612
  ],
13989
- "isOptional": false,
13613
+ "isOptional": true,
13990
13614
  "releaseTag": "Public",
13991
13615
  "name": "traceFlags",
13992
13616
  "propertyTypeTokenRange": {
@@ -13996,12 +13620,12 @@
13996
13620
  },
13997
13621
  {
13998
13622
  "kind": "PropertySignature",
13999
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent#traceId:member",
14000
- "docComment": "/**\n * This is the ID of the whole trace forest and is used to uniquely identify a distributed trace through a system. It is represented as a 32-character string of lowercase hexadecimal characters, for example, 4bf92f3577b34da6a3ce929d0e0e4736. All characters as zero (00000000000000000000000000000000) is considered an invalid value.\n */\n",
13623
+ "canonicalReference": "@microsoft/applicationinsights-common!ITelemetryTrace#traceID:member",
13624
+ "docComment": "/**\n * Trace id\n */\n",
14001
13625
  "excerptTokens": [
14002
13626
  {
14003
13627
  "kind": "Content",
14004
- "text": "traceId: "
13628
+ "text": "traceID?: "
14005
13629
  },
14006
13630
  {
14007
13631
  "kind": "Content",
@@ -14012,9 +13636,9 @@
14012
13636
  "text": ";"
14013
13637
  }
14014
13638
  ],
14015
- "isOptional": false,
13639
+ "isOptional": true,
14016
13640
  "releaseTag": "Public",
14017
- "name": "traceId",
13641
+ "name": "traceID",
14018
13642
  "propertyTypeTokenRange": {
14019
13643
  "startIndex": 1,
14020
13644
  "endIndex": 2
@@ -14022,25 +13646,26 @@
14022
13646
  },
14023
13647
  {
14024
13648
  "kind": "PropertySignature",
14025
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent#version:member",
14026
- "docComment": "/**\n * The version of the definition, this MUST be a string with a length of 2 and only contain lowercase hexadecimal characters. A value of 'ff' is considered to be an invalid version.\n */\n",
13649
+ "canonicalReference": "@microsoft/applicationinsights-common!ITelemetryTrace#traceState:member",
13650
+ "docComment": "/**\n * @deprecated\n *\n * Never Used Trace state\n */\n",
14027
13651
  "excerptTokens": [
14028
13652
  {
14029
13653
  "kind": "Content",
14030
- "text": "version: "
13654
+ "text": "traceState?: "
14031
13655
  },
14032
13656
  {
14033
- "kind": "Content",
14034
- "text": "string"
13657
+ "kind": "Reference",
13658
+ "text": "ITraceState",
13659
+ "canonicalReference": "@microsoft/applicationinsights-common!ITraceState:interface"
14035
13660
  },
14036
13661
  {
14037
13662
  "kind": "Content",
14038
13663
  "text": ";"
14039
13664
  }
14040
13665
  ],
14041
- "isOptional": false,
13666
+ "isOptional": true,
14042
13667
  "releaseTag": "Public",
14043
- "name": "version",
13668
+ "name": "traceState",
14044
13669
  "propertyTypeTokenRange": {
14045
13670
  "startIndex": 1,
14046
13671
  "endIndex": 2
@@ -17765,51 +17390,6 @@
17765
17390
  ],
17766
17391
  "name": "parseConnectionString"
17767
17392
  },
17768
- {
17769
- "kind": "Function",
17770
- "canonicalReference": "@microsoft/applicationinsights-common!parseTraceParent:function(1)",
17771
- "docComment": "/**\n * Attempt to parse the provided string as a W3C TraceParent header value (https://www.w3.org/TR/trace-context/#traceparent-header)\n *\n * @param value - \n *\n * @returns \n */\n",
17772
- "excerptTokens": [
17773
- {
17774
- "kind": "Content",
17775
- "text": "export declare function parseTraceParent(value: "
17776
- },
17777
- {
17778
- "kind": "Content",
17779
- "text": "string"
17780
- },
17781
- {
17782
- "kind": "Content",
17783
- "text": "): "
17784
- },
17785
- {
17786
- "kind": "Reference",
17787
- "text": "ITraceParent",
17788
- "canonicalReference": "@microsoft/applicationinsights-common!ITraceParent:interface"
17789
- },
17790
- {
17791
- "kind": "Content",
17792
- "text": ";"
17793
- }
17794
- ],
17795
- "returnTypeTokenRange": {
17796
- "startIndex": 3,
17797
- "endIndex": 4
17798
- },
17799
- "releaseTag": "Public",
17800
- "overloadIndex": 1,
17801
- "parameters": [
17802
- {
17803
- "parameterName": "value",
17804
- "parameterTypeTokenRange": {
17805
- "startIndex": 1,
17806
- "endIndex": 2
17807
- },
17808
- "isOptional": false
17809
- }
17810
- ],
17811
- "name": "parseTraceParent"
17812
- },
17813
17393
  {
17814
17394
  "kind": "Variable",
17815
17395
  "canonicalReference": "@microsoft/applicationinsights-common!ProcessLegacy:var",