Skip to content

Commit 12f3b4f

Browse files
author
Ignacio Bonafonte
authored
Merge branch 'main' into fix-metrics-thread-races
2 parents 888db17 + 9951cad commit 12f3b4f

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ or
3939
Official documentation for the library can be found in the official opentelemetry [documentation page](https://opentelemetry.io/docs/instrumentation/swift/), including:
4040

4141
* Documentation about installation and [manual instrumentation](https://opentelemetry.io/docs/instrumentation/swift/manual/)
42-
42+
4343
* [Libraries](https://opentelemetry.io/docs/instrumentation/swift/libraries/) that provide automatic instrumentation
4444

4545
## Current status
4646

4747
### API and SDK
4848

49-
Tracing and Baggage should be considered stable
49+
Tracing and Baggage are considered stable
5050

51-
Metrics is implemented using an outdated spec, is fully functional but will change in the future
51+
Logs are considered beta quality
5252

53-
Logs are currently in development
53+
Metrics is implemented using an outdated spec, is fully functional but will change in the future
5454

55-
### Supported exporters, importers and instrumentation libraries
55+
### Supported exporters and importers
5656

5757
#### Traces
5858
* Exporters: Stdout, Jaeger, Zipkin, Datadog and OpenTelemetry (OTLP) collector
@@ -62,7 +62,12 @@ Logs are currently in development
6262
* Exporters: Prometheus, Datadog, and OpenTelemetry (OTLP) collector
6363
* Importers: SwiftMetricsShim
6464

65-
#### Instrumentation libraries
65+
#### Logs
66+
* Exporters: OpenTelemetry (OTLP) collector
67+
68+
> **_NOTE:_** OTLP exporters are supported both in GRPC and HTTP/JSON, only GRPC is production ready, HTTP/JSON is still experimental
69+
70+
### Instrumentation libraries
6671
* URLSession
6772
* NetworkStatus
6873
* SDKResourceExtension
@@ -79,5 +84,3 @@ The package includes some example projects with basic functionality:
7984
- `Simple Exporter` - Shows the Jaeger an Stdout exporters in action using a MultiSpanExporter. Can be easily modified for other exporters
8085
- `Prometheus Sample` - Shows the Prometheus exporter reporting metrics to a Prometheus instance
8186
- `OTLP Exporter` - Shows the OTLP exporter reporting traces to Zipkin and metrics to a Prometheus via the otel-collector
82-
83-

Scripts/semantic-convention/generate.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ docker run --rm \
4141
-Denum=ResourceAttributes \
4242

4343
cd "$ROOT_DIR"
44+
45+
46+
# update spec version reported by library
47+
sed -E -i '' 's/public static var version = ".+"/public static var version = "'$SPEC_VERSION\"/ ${ROOT_DIR}/Sources/OpenTelemetryApi/OpenTelemetry.swift

Sources/OpenTelemetryApi/OpenTelemetry.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import Foundation
99
/// and BaggageManager.
1010
/// The telemetry objects are lazy-loaded singletons resolved via ServiceLoader mechanism.
1111
public struct OpenTelemetry {
12+
13+
public static var version = "v1.7.0"
14+
1215
public static var instance = OpenTelemetry()
1316

1417
/// Registered tracerProvider or default via DefaultTracerProvider.instance.

0 commit comments

Comments
 (0)