Skip to content

Commit

Permalink
Update docs to use @import Sentry; (#10994)
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin authored Aug 12, 2024
1 parent 5570bdf commit e1634cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ do {
```

```objc {tabTitle:Objective-C}
#import <Sentry/Sentry.h>
@import Sentry;

id<SentrySpan> transaction = [SentrySDK startTransactionWithName:@"Transaction Name" operation:@"operation" bindToScope:YES];
NSError * error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ transaction.context.spanDescription = "search results"
```

```objc {tabTitle:Objective-C}
#import <Sentry/Sentry.h>
@import Sentry;

// The following data will take part in the sampling decision
NSDictionary<NSString *, id> *samplingContext = @{
Expand Down
2 changes: 1 addition & 1 deletion platform-includes/performance/traces-sample-rate/apple.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SentrySDK.start { options in
```

```objc {tabTitle:Objective-C}
#import <Sentry/Sentry.h>
@import Sentry;

[SentrySDK startWithConfigureOptions:^(SentryOptions * options) {
options.tracesSampleRate = @0.2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SentrySDK.start { configureOptions in
```

```objc {tabTitle:Objective-C}
#import <Sentry/Sentry.h>
@import Sentry;

[SentrySDK startWithConfigureOptions:^(SentryOptions * _Nonnull options) {
options.dsn = @"___PUBLIC_DSN___";
Expand Down

0 comments on commit e1634cc

Please sign in to comment.