Skip to content

Commit

Permalink
Add Swift Name for protocol inheriting (it fails when implementing fr…
Browse files Browse the repository at this point in the history
…om swift without it)
  • Loading branch information
Ignacio Bonafonte authored and Ignacio Bonafonte committed Dec 11, 2020
1 parent 560fded commit 18c1a35
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 18c1a35

Please sign in to comment.