Skip to content

Commit 6ff184d

Browse files
committed
Cleanups and testing baggage is a typealias
1 parent 1a74959 commit 6ff184d

14 files changed

+35
-7
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ As this API package was just released, no projects have yet fully adopted it, th
4141
|--------------------------|----------------|-------------------------------------------------------|
4242
| AsyncHTTPClient | Tracing | Pending |
4343
| Swift gRPC | Tracing | Pending |
44-
| Swift AWS Lambda Runtime | Tracing | Pending |
45-
| Swift NIO | ServiceContext | Pending |
46-
| RediStack (Redis) | Tracing | Pending |
47-
| Soto AWS Client | Tracing | Pending |
4844
| _Your library?_ | ... | [Get in touch!](https://forums.swift.org/c/server/43) |
4945

5046
If you know of any other library please send in a [pull request](https://github.com/apple/swift-distributed-tracing/compare) to add it to the list, thank you!
@@ -53,7 +49,7 @@ If you know of any other library please send in a [pull request](https://github.
5349

5450
## Reference Documentation
5551

56-
Please refer to the [reference documentation](https://swiftpackageindex.com/apple/swift-distributed-tracing/documentation/tracing) for detailed guides about adopting distributed tracing in yout applications, libraries and frameworks.
52+
Please refer to the **[reference documentation](https://swiftpackageindex.com/apple/swift-distributed-tracing/documentation/tracing)** for detailed guides about adopting distributed tracing in your applications, libraries and frameworks.
5753

5854
---
5955

Sources/Instrumentation/InstrumentationSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public enum InstrumentationSystem {
6464

6565
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) // for TaskLocal ServiceContext
6666
extension InstrumentationSystem {
67-
/// :nodoc: INTERNAL API: Do Not Use
67+
/// INTERNAL API: Do Not Use
6868
public static func _findInstrument(where predicate: (Instrument) -> Bool) -> Instrument? {
6969
self.lock.withReaderLock {
7070
if let multiplex = self._instrument as? MultiplexInstrument {

Sources/Tracing/SpanProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public protocol SpanAttributeNamespace {
246246
public protocol NestedSpanAttributesProtocol {
247247
init()
248248

249-
/// :nodoc: INTERNAL API
249+
/// INTERNAL API
250250
/// Magic value allowing the dynamicMember lookup inside SpanAttributeNamespaces to work.
251251
///
252252
/// There is no need of ever implementing this function explicitly, the default implementation is good enough.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift Distributed Tracing open source project
4+
//
5+
// Copyright (c) 2020-2023 Apple Inc. and the Swift Distributed Tracing project
6+
// authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
15+
@testable import Instrumentation
16+
import ServiceContextModule
17+
import InstrumentationBaggage // legacy module, kept for easier migrations
18+
import Tracing
19+
import XCTest
20+
21+
final class ActorTracingTests: XCTestCase {
22+
override class func tearDown() {
23+
super.tearDown()
24+
InstrumentationSystem.bootstrapInternal(nil)
25+
}
26+
}
27+
28+
func test() {
29+
// Testing that the baggage type is just a typealias
30+
let baggage = Baggage.topLevel // import InstrumentationBaggage
31+
let span = startSpan("something", context: baggage)
32+
}

0 commit comments

Comments
 (0)