Repository navigation
Refactor to use the C++ Tracer instead of the legacy Lua implementation - #109
Draft
xlamorlette-datadog wants to merge 3 commits into
Draft
xlamorlette-datadog wants to merge 3 commits into
xlamorlette-datadog wants to merge 3 commits into
Conversation
* feat: add tracer.lua FFI module and build infrastructure * fix: make dd-trace-cpp opt-in and add error checking to build script
* feat: add ffi_span.lua with metatype span methods * fix: address review feedback - graceful error handling, type validation, error messages * fix: address round 3 review feedback - rename accessors, consistent error returns, value type validation
* refactor: rewrite handler.lua to use tracer.lua FFI module Replace pure-Lua tracing modules (sampler, propagation, agent_writer, span, msgpack_encode) with dd-trace-cpp via the tracer.lua FFI bindings. The C++ library handles sampling, propagation, timestamps, and trace submission internally. - Update handler.lua to use ddtrace.get_or_create/extract_or_create_span - Remove 7 Lua modules and 5 corresponding test files - Remove lua-resty-http dependency from rockspec - Fix datadog_span_id bug (was incorrectly set to trace_id) - Mark integration trace submission test as pending (dd-trace-cpp async) * refactor: address FFI handler review feedback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a refactor of the Kong plugin to use the C++ Tracer (
dd-trace-cpp) via FFI (Foreign Function Interface: calls via a C binding), instead of the legacy Lua implementation of the Datadog APM tracing capabilities.The following PR should be considered with this one: #104.