| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | namespace Azure.Messaging.EventHubs.Diagnostics |
| | | 5 | | { |
| | | 6 | | /// <summary> |
| | | 7 | | /// The set of well-known properties associated with Event Hubs diagnostics. |
| | | 8 | | /// </summary> |
| | | 9 | | /// |
| | | 10 | | internal static class DiagnosticProperty |
| | | 11 | | { |
| | | 12 | | /// <summary>The attribute which represents a unique identifier for the diagnostics context.</summary> |
| | | 13 | | public const string DiagnosticIdAttribute = "Diagnostic-Id"; |
| | | 14 | | |
| | | 15 | | /// <summary>The attribute which represents the Azure service to associate with diagnostics information.</summar |
| | | 16 | | public const string ServiceContextAttribute = "component"; |
| | | 17 | | |
| | | 18 | | /// <summary>The attribute which represents the Event Hub instance to associate with diagnostics information.</s |
| | | 19 | | public const string EventHubAttribute = "message_bus.destination"; |
| | | 20 | | |
| | | 21 | | /// <summary>The attribute which represents the fully-qualified endpoint address of the Event Hubs namespace to |
| | | 22 | | public const string EndpointAttribute = "peer.address"; |
| | | 23 | | |
| | | 24 | | /// <summary>The attribute which represents the UNIX Epoch enqueued time of an event to associate with diagnosti |
| | | 25 | | public const string EnqueuedTimeAttribute = "enqueuedTime"; |
| | | 26 | | |
| | | 27 | | /// <summary>The value which identifies the Event Hubs diagnostics context.</summary> |
| | | 28 | | public const string EventHubsServiceContext = "eventhubs"; |
| | | 29 | | |
| | | 30 | | /// <summary>The value which identifies an Event Hub producer as the type associated with the diagnostics inform |
| | | 31 | | public const string EventHubProducerType = "producer"; |
| | | 32 | | |
| | | 33 | | /// <summary>The attribute which represents the kind of diagnostic scope.</summary> |
| | | 34 | | public const string KindAttribute = "kind"; |
| | | 35 | | |
| | | 36 | | /// <summary>The value which identifies the message instrumentation scope kind.</summary> |
| | | 37 | | public const string ProducerKind = "producer"; |
| | | 38 | | |
| | | 39 | | /// <summary>The value which identifies the message client scope kind.</summary> |
| | | 40 | | public const string ClientKind = "client"; |
| | | 41 | | |
| | | 42 | | /// <summary>The value which identifies the processor scope kind.</summary> |
| | | 43 | | public const string ConsumerKind = "consumer"; |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// The activity name associated with events. |
| | | 47 | | /// </summary> |
| | | 48 | | /// |
| | 0 | 49 | | public static string EventActivityName { get; } = "EventHubs.Message"; |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// The activity name associated with Event Hub producers. |
| | | 53 | | /// </summary> |
| | | 54 | | /// |
| | 0 | 55 | | public static string ProducerActivityName { get; } = "EventHubProducerClient.Send"; |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// The activity name associated with EventProcessor processing a list of events. |
| | | 59 | | /// </summary> |
| | | 60 | | /// |
| | 0 | 61 | | public static string EventProcessorProcessingActivityName { get; } = "EventProcessor.Process"; |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// The activity name associated with EventProcessor creating a checkpoint. |
| | | 65 | | /// </summary> |
| | | 66 | | /// |
| | 16 | 67 | | public static string EventProcessorCheckpointActivityName { get; } = "EventProcessor.Checkpoint"; |
| | | 68 | | } |
| | | 69 | | } |