Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Opentracing",
products: [
.library( name: "Opentracing", type: .dynamic, targets: ["Opentracing"]),
.library( name: "libOpentracing", type: .static, targets: ["Opentracing"]),
],
dependencies: [
],
targets: [
.target( name: "Opentracing",
dependencies: [],
path: "Pod",
sources:["Classes"],
publicHeadersPath: "SPMHeaders")
]
)

4 changes: 2 additions & 2 deletions Pod/Classes/OTTracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ FOUNDATION_EXPORT NSInteger OTSpanContextCorruptedCode;
* @see OTUsupportedFormatCode
* @see OTInvalidCarrierCode
*/
- (BOOL)inject:(id<OTSpanContext>)spanContext format:(NSString*)format carrier:(id)carrier error:(NSError* __autoreleasing *)outError;
- (BOOL)inject:(id<OTSpanContext>)spanContext format:(NSString*)format carrier:(id)carrier error:(NSError* __autoreleasing *)outError NS_SWIFT_NAME(inject(spanContext:format:carrier:));

/**
* @see OTTracer#extractWithFormat:carrier:error:
Expand Down Expand Up @@ -221,7 +221,7 @@ FOUNDATION_EXPORT NSInteger OTSpanContextCorruptedCode;
* @see OTSpanContextCorruptedCode
* @see OTTracer#startSpan:references:tags:startTime:
*/
- (nullable id<OTSpanContext>)extractWithFormat:(NSString*)format carrier:(id)carrier error:(NSError* __autoreleasing *)outError;
- (nullable id<OTSpanContext>)extractWithFormat:(NSString*)format carrier:(id)carrier error:(NSError* __autoreleasing *)outError NS_SWIFT_NAME(extractWithFormat(format:carrier:));

@end

Expand Down
26 changes: 26 additions & 0 deletions Pod/SPMHeaders/opentracing.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// OpenTracing.h
// OpenTracing
//
// Created by Ignacio Bonafonte on 07/05/2019.
// Copyright © 2019 OpenTracing. All rights reserved.
//

#import <Foundation/Foundation.h>

//! Project version number for OpenTracing.
FOUNDATION_EXPORT double OpenTracingVersionNumber;

//! Project version string for OpenTracing.
FOUNDATION_EXPORT const unsigned char OpenTracingVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <OpenTracing/PublicHeader.h>

#import <./../Classes/OTTracer.h>
#import <./../Classes/OTSpanContext.h>
#import <./../Classes/OTSpan.h>
#import <./../Classes/OTNoop.h>
#import <./../Classes/OTGlobal.h>
#import <./../Classes/OTReference.h>
#import <./../Classes/OTVersion.h>

19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Gitter chat](http://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/opentracing/public) [![Version](https://img.shields.io/cocoapods/v/opentracing.svg?style=flat)](http://cocoapods.org/pods/opentracing) [![License](https://img.shields.io/cocoapods/l/opentracing.svg?style=flat)](http://cocoapods.org/pods/opentracing) [![Platform](https://img.shields.io/cocoapods/p/opentracing.svg?style=flat)](http://cocoapods.org/pods/opentracing)
[![Gitter chat](http://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/opentracing/public) [![Version](https://img.shields.io/cocoapods/v/opentracing.svg?style=flat)](http://cocoapods.org/pods/opentracing) [![License](https://img.shields.io/cocoapods/l/opentracing.svg?style=flat)](http://cocoapods.org/pods/opentracing) [![Platform](https://img.shields.io/cocoapods/p/opentracing.svg?style=flat)](http://cocoapods.org/pods/opentracing) [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://swift.org/package-manager/)

# OpenTracing API for Objective-C

Expand All @@ -17,3 +17,20 @@ Use [CocoaPods](https://guides.cocoapods.org/using/getting-started.html)!
```ruby
pod "opentracing"
```

## Installation (Carthage)

Use [Carthage](https://github.com/Carthage/Carthage#quick-start)!

```ruby
github "opentracing/opentracing-objc"
```

## Installation (SwiftPM)

```swift
dependencies: [
.package(url: "https://github.com/opentracing/opentracing-objc", from: "0.5.2")
]
```

2 changes: 1 addition & 1 deletion opentracing.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# GENERATED FILE: DO NOT EDIT DIRECTLY
Pod::Spec.new do |s|
s.name = "opentracing"
s.version = "0.5.1"
s.version = "0.5.2"
s.summary = "The OpenTracing API for Objective-C"

s.description = <<-DESC
Expand Down