Skip to content

[LuaJIT 1/n] Add initial no-op plumbing for LuaJIT unwinder#1397

Merged
christos68k merged 3 commits into
open-telemetry:mainfrom
parca-dev:lua1
May 13, 2026
Merged

[LuaJIT 1/n] Add initial no-op plumbing for LuaJIT unwinder#1397
christos68k merged 3 commits into
open-telemetry:mainfrom
parca-dev:lua1

Conversation

@umanwizard
Copy link
Copy Markdown
Contributor

This reserves various constants, metric IDs, error codes, and so on, but should result in no behavior changes.

Copy link
Copy Markdown
Contributor

@fabled fabled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering also if metrics/errors addition makes sense here or not. But if the implementation is fairly stable and those values are sufficient then they are probly good.

I'd still leave the introspection related file for later PR.

Comment thread support/ebpf/luajit.h Outdated
@@ -0,0 +1,30 @@
// Copyright The OpenTelemetry Authors
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this file be left out?
These seems Lua introspection data and is unrelated to the internal identifier allocation

@gnurizen
Copy link
Copy Markdown
Contributor

gnurizen commented May 5, 2026

@umanwizard is out for a bit so I made the changes, should be ready to go

Copy link
Copy Markdown
Member

@florianl florianl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errors/metrics, like ERR_LUAJIT_NO_PROC_INFO or UnwindLuaJITErrNoProcInfo, seem to be implementation specific and might fit better as part of the implementation PR than this scaffolding.

Comment thread support/ebpf/types.h Outdated

// number of attempts to unwind LuaJIT
metricID_UnwindLuaJITAttempts,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To follow the other unwinders, metricID_UnwindLuaJITFrames is missing here and in metrics/metrics.json.

@gnurizen gnurizen force-pushed the lua1 branch 3 times, most recently from 007b16a to 5c7194f Compare May 11, 2026 13:44
@gnurizen
Copy link
Copy Markdown
Contributor

Re-worked to not include errors/metrics. RFAL

Comment thread libpf/interpretertype.go
Dotnet: "dotnet",
BEAM: "beam",
APMInt: "apm-integration",
LuaJIT: "luajit",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: opened open-telemetry/semantic-conventions#3707 to land support for this frame type.

@umanwizard
Copy link
Copy Markdown
Contributor Author

Thank you @gnurizen for shepherding this while I was out on PTO.

umanwizard and others added 3 commits May 13, 2026 12:46
This reserves various constants, metric IDs, error codes, and so on,
but should result in no behavior changes.
@umanwizard
Copy link
Copy Markdown
Contributor Author

Rebased to fix unwinder conflicts and pushed.

@christos68k christos68k merged commit f73abb9 into open-telemetry:main May 13, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants