Skip to content

Commit 30391e1

Browse files
committed
Add SeeAlso documentation to OTel span attributes
1 parent ced7ffc commit 30391e1

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Sources/OpenTelemetryInstrumentationSupport/SpanAttribute+EndUser.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ extension SpanAttributes {
3333
}
3434

3535
/// End-user-related semantic conventions as defined in the OpenTelemetry spec.
36+
///
37+
/// - SeeAlso: [OpenTelemetry: General identity attributes](https://github.com/open-telemetry/opentelemetry-specification/blob/b70565d5a8a13d26c91fb692879dc874d22c3ac8/specification/trace/semantic_conventions/span-general.md#general-identity-attributes) (as of August 2020)
3638
@dynamicMemberLookup
3739
public struct EndUserAttributes: SpanAttributeNamespace {
3840
public var attributes: SpanAttributes

Sources/OpenTelemetryInstrumentationSupport/SpanAttribute+HTTPSemantics.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ extension SpanAttributes {
4646
}
4747

4848
/// Semantic conventions for HTTP spans as defined in the OpenTelemetry spec.
49+
///
50+
/// - SeeAlso: [OpenTelemetry: Semantic conventions for HTTP spans](https://github.com/open-telemetry/opentelemetry-specification/blob/b70565d5a8a13d26c91fb692879dc874d22c3ac8/specification/trace/semantic_conventions/http.md) (as of August 2020)
4951
@dynamicMemberLookup
5052
public struct HTTPAttributes: SpanAttributeNamespace {
5153
public var attributes: SpanAttributes

Sources/OpenTelemetryInstrumentationSupport/SpanAttribute+NetSemantics.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ extension SpanAttributes {
3737
}
3838

3939
/// Network-related semantic conventions as defined in the OpenTelemetry spec.
40+
///
41+
/// - SeeAlso: [OpenTelemetry: General semantic attributes](https://github.com/open-telemetry/opentelemetry-specification/blob/b70565d5a8a13d26c91fb692879dc874d22c3ac8/specification/trace/semantic_conventions/span-general.md) (as of August 2020)
4042
@dynamicMemberLookup
4143
public struct NetAttributes: SpanAttributeNamespace {
4244
public var attributes: SpanAttributes

Sources/OpenTelemetryInstrumentationSupport/SpanAttribute+PeerSemantics.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ extension SpanAttributes {
3131
}
3232

3333
/// Peer-related semantic conventions as defined in the OpenTelemetry spec.
34+
///
35+
/// - SeeAlso: [OpenTelemetry: General remote service attributes](https://github.com/open-telemetry/opentelemetry-specification/blob/b70565d5a8a13d26c91fb692879dc874d22c3ac8/specification/trace/semantic_conventions/span-general.md#general-remote-service-attributes) (as of August 2020)
3436
@dynamicMemberLookup
3537
public struct PeerAttributes: SpanAttributeNamespace {
3638
public var attributes: SpanAttributes

0 commit comments

Comments
 (0)