Skip to content

Commit 15580b6

Browse files
authored
docs(Godot): Update breadcrumbs API (#14892)
1 parent 28c14a6 commit 15580b6

File tree

2 files changed

+7
-8
lines changed
  • platform-includes

2 files changed

+7
-8
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
```GDScript
2-
var message := "Player respawned"
3-
var category := "gameplay"
4-
var level := SentrySDK.LEVEL_INFO
5-
var type := "default"
6-
var data := {
2+
var crumb := SentryBreadcrumb.create("Player respawned")
3+
crumb.category = "gameplay"
4+
crumb.level = SentrySDK.LEVEL_INFO
5+
crumb.type = "info"
6+
crumb.data = {
77
"player_id": 1,
88
"spawn_point": "forest"
99
}
10-
11-
SentrySDK.add_breadcrumb(message, category, level, type, data)
10+
SentrySDK.add_breadcrumb(crumb)
1211
```

platform-includes/getting-started-verify/godot.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
extends Node
33
44
func _ready():
5-
SentrySDK.add_breadcrumb("Just about to welcome the World.", "Note")
5+
SentrySDK.add_breadcrumb(SentryBreadcrumb.create("Just about to welcome the World."))
66
SentrySDK.capture_message("Hello, World!")
77
```

0 commit comments

Comments
 (0)