Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(Apple): Update docs to use @import Sentry; #10994

Merged
merged 1 commit into from
Aug 12, 2024
Merged
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
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
Loading