@@ -43,7 +43,11 @@ public interface IAttributeDefinitions
43
43
AttributeDefinition < float , double > DatabaseDuration { get ; }
44
44
AttributeDefinition < string , string > DbCollection { get ; }
45
45
AttributeDefinition < string , string > DbInstance { get ; }
46
+ AttributeDefinition < string , string > DbOperation { get ; }
47
+ AttributeDefinition < string , string > DbServerAddress { get ; }
48
+ AttributeDefinition < long , long > DbServerPort { get ; }
46
49
AttributeDefinition < string , string > DbStatement { get ; }
50
+ AttributeDefinition < string , string > DbSystem { get ; }
47
51
AttributeDefinition < string , string > DistributedTraceId { get ; }
48
52
AttributeDefinition < TimeSpan , double > Duration { get ; }
49
53
AttributeDefinition < bool , bool > IsErrorExpected { get ; }
@@ -91,6 +95,8 @@ public interface IAttributeDefinitions
91
95
AttributeDefinition < string , string > RequestUri { get ; }
92
96
AttributeDefinition < int ? , string > ResponseStatus { get ; }
93
97
AttributeDefinition < bool , bool > Sampled { get ; }
98
+ AttributeDefinition < string , string > ServerAddress { get ; }
99
+ AttributeDefinition < long , long > ServerPort { get ; }
94
100
AttributeDefinition < SpanCategory , string > SpanCategory { get ; }
95
101
AttributeDefinition < string , string > SpanErrorClass { get ; }
96
102
AttributeDefinition < string , string > SpanErrorMessage { get ; }
@@ -102,6 +108,7 @@ public interface IAttributeDefinitions
102
108
AttributeDefinition < string , string > SyntheticsMonitorIdForTraces { get ; }
103
109
AttributeDefinition < string , string > SyntheticsResourceId { get ; }
104
110
AttributeDefinition < string , string > SyntheticsResourceIdForTraces { get ; }
111
+ AttributeDefinition < long , long > ThreadId { get ; }
105
112
AttributeDefinition < DateTime , long > Timestamp { get ; }
106
113
AttributeDefinition < DateTime , long > TimestampForError { get ; }
107
114
AttributeDefinition < TimeSpan , double > TotalTime { get ; }
@@ -476,6 +483,12 @@ public AttributeDefinition<TypeAttributeValue, string> GetTypeAttribute(TypeAttr
476
483
. AppliesTo ( AttributeDestinations . SpanEvent )
477
484
. Build ( _attribFilter ) ) ;
478
485
486
+ private AttributeDefinition < long , long > _threadId ;
487
+ public AttributeDefinition < long , long > ThreadId => _threadId ?? ( _threadId =
488
+ AttributeDefinitionBuilder . CreateLong ( "thread.id" , AttributeClassification . Intrinsics )
489
+ . AppliesTo ( AttributeDestinations . SpanEvent )
490
+ . Build ( _attribFilter ) ) ;
491
+
479
492
private AttributeDefinition < string , string > _component ;
480
493
public AttributeDefinition < string , string > Component => _component ?? ( _component =
481
494
AttributeDefinitionBuilder . CreateString ( "component" , AttributeClassification . Intrinsics )
@@ -513,6 +526,18 @@ public AttributeDefinition<TypeAttributeValue, string> GetTypeAttribute(TypeAttr
513
526
. AppliesTo ( AttributeDestinations . SpanEvent )
514
527
. Build ( _attribFilter ) ) ;
515
528
529
+ private AttributeDefinition < string , string > _dbSystem ;
530
+ public AttributeDefinition < string , string > DbSystem => _dbSystem ?? ( _dbSystem =
531
+ AttributeDefinitionBuilder . CreateString ( "db.system" , AttributeClassification . AgentAttributes )
532
+ . AppliesTo ( AttributeDestinations . SpanEvent )
533
+ . Build ( _attribFilter ) ) ;
534
+
535
+ private AttributeDefinition < string , string > _dbOperation ;
536
+ public AttributeDefinition < string , string > DbOperation => _dbOperation ?? ( _dbOperation =
537
+ AttributeDefinitionBuilder . CreateString ( "db.operation" , AttributeClassification . AgentAttributes )
538
+ . AppliesTo ( AttributeDestinations . SpanEvent )
539
+ . Build ( _attribFilter ) ) ;
540
+
516
541
private AttributeDefinition < string , string > _dbCollection ;
517
542
public AttributeDefinition < string , string > DbCollection => _dbCollection ?? ( _dbCollection =
518
543
AttributeDefinitionBuilder . CreateString ( "db.collection" , AttributeClassification . AgentAttributes )
@@ -546,7 +571,31 @@ public AttributeDefinition<TypeAttributeValue, string> GetTypeAttribute(TypeAttr
546
571
547
572
private AttributeDefinition < string , string > _httpMethod ;
548
573
public AttributeDefinition < string , string > HttpMethod => _httpMethod ?? ( _httpMethod =
549
- AttributeDefinitionBuilder . CreateString ( "http.method" , AttributeClassification . AgentAttributes )
574
+ AttributeDefinitionBuilder . CreateString ( "http.request.method" , AttributeClassification . AgentAttributes )
575
+ . AppliesTo ( AttributeDestinations . SpanEvent )
576
+ . Build ( _attribFilter ) ) ;
577
+
578
+ private AttributeDefinition < string , string > _serverAddress ;
579
+ public AttributeDefinition < string , string > ServerAddress => _serverAddress ?? ( _serverAddress =
580
+ AttributeDefinitionBuilder . CreateString ( "server.address" , AttributeClassification . Intrinsics )
581
+ . AppliesTo ( AttributeDestinations . SpanEvent )
582
+ . Build ( _attribFilter ) ) ;
583
+
584
+ private AttributeDefinition < long , long > _serverPort ;
585
+ public AttributeDefinition < long , long > ServerPort => _serverPort ?? ( _serverPort =
586
+ AttributeDefinitionBuilder . CreateLong ( "server.port" , AttributeClassification . Intrinsics )
587
+ . AppliesTo ( AttributeDestinations . SpanEvent )
588
+ . Build ( _attribFilter ) ) ;
589
+
590
+ private AttributeDefinition < string , string > _dbServerAddress ;
591
+ public AttributeDefinition < string , string > DbServerAddress => _dbServerAddress ?? ( _dbServerAddress =
592
+ AttributeDefinitionBuilder . CreateString ( "server.address" , AttributeClassification . AgentAttributes )
593
+ . AppliesTo ( AttributeDestinations . SpanEvent )
594
+ . Build ( _attribFilter ) ) ;
595
+
596
+ private AttributeDefinition < long , long > _dbServerPort ;
597
+ public AttributeDefinition < long , long > DbServerPort => _dbServerPort ?? ( _dbServerPort =
598
+ AttributeDefinitionBuilder . CreateLong ( "server.port" , AttributeClassification . AgentAttributes )
550
599
. AppliesTo ( AttributeDestinations . SpanEvent )
551
600
. Build ( _attribFilter ) ) ;
552
601
0 commit comments