https://github.com/v-sekai/godot-desync-otel
https://github.com/v-sekai/godot-desync-otel
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/v-sekai/godot-desync-otel
- Owner: V-Sekai
- License: mit
- Created: 2023-10-29T21:16:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T17:17:51.000Z (6 months ago)
- Last Synced: 2025-01-24T02:39:14.428Z (3 months ago)
- Language: C++
- Size: 4.57 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Godot Engine Open Telemetry & Desync (casync protocol)
```gdscript
extends Node3Dvar otel: OpenTelemetry = Opentelemetry.new()
func _ready() -> void:
var error = otel.init_tracer_provider("godot", "localhost:4317", Engine.get_version_info())
print(error)func _process(_delta) -> void:
var parent_span_id = otel.start_span("test-_ready")
var span_id = otel.start_span_with_parent("test-child", parent_span_id)
otel.add_event(span_id, "test-event")
otel.set_attributes(span_id, {"test-key": "test-value"})
otel.record_error(span_id, str(get_stack()))
otel.end_span(span_id)
otel.end_span(parent_span_id)func _exit_tree() -> void:
otel.shutdown()
```