extends Node3D
var 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()
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
V-Sekai/godot-desync-otel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published