Skip to content

Commit

Permalink
Update traces.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lomindioladiaz authored Oct 11, 2024
1 parent 082bb9b commit 873ff17
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/ios/5x/features/traces.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,13 @@ import TabItem from '@theme/TabItem';
<TabItem value="swift" label="Swift">

```swift
// Create a span by creating its root span
let span = Embrace.sharedInstance().createSpanNamed("process-image")
```

</TabItem>
<TabItem value="objc" label="Objective-C">

```objc
// Create a span by creating its root span
id<EmbraceOTelSpan> span = [[Embrace sharedInstance] createSpanNamed:@"process-image" parent:nil];
```
Expand Down Expand Up @@ -120,7 +118,7 @@ id<EmbraceOTelSpan> span = [[Embrace sharedInstance] createSpanNamed:@"custom-na
<TabItem value="swift" label="Swift">
```swift
// Create a span root span with a custom name
// Create a root span with a custom name
let span = Embrace.sharedInstance().createSpanNamed("process-batch")
// Create a child span by including the parent parameter
Expand All @@ -131,7 +129,7 @@ let childSpan = Embrace.sharedInstance().createSpanNamed("process-item", parent:
<TabItem value="objc" label="Objective-C">

```objc
// Create a span root span with a custom name
// Create a root span with a custom name
id<EmbraceOTelSpan> span = [[Embrace sharedInstance] createSpanNamed:@"process-batch" parent:nil];

// Create a child span by including the parent parameter
Expand Down

0 comments on commit 873ff17

Please sign in to comment.