Skip to content

feat: add opentelemetry plugin#6119

Merged
spacewander merged 11 commits into
apache:masterfrom
yangxikun:master
Jan 26, 2022
Merged

feat: add opentelemetry plugin#6119
spacewander merged 11 commits into
apache:masterfrom
yangxikun:master

Conversation

@yangxikun

@yangxikun yangxikun commented Jan 16, 2022

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Add opentelemetry plugin.
Fix #3891

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@leslie-tsang leslie-tsang left a comment

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.

Hello there, Thanks for you contribution, Can you send a email to the mail list ?

Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
Comment thread docs/zh/latest/plugins/opentelemetry.md Outdated
Comment thread apisix/plugins/opentelemetry.lua
Comment thread docs/zh/latest/plugins/opentelemetry.md Outdated
Comment thread docs/zh/latest/plugins/opentelemetry.md Outdated
Comment thread t/plugin/opentelemetry.t Outdated
Comment thread apisix/plugins/opentelemetry.lua Outdated
@yangxikun yangxikun changed the title feature: add opentelemetry plugin. (#3891) feat: add opentelemetry plugin #3891 Jan 16, 2022
Comment thread t/plugin/opentelemetry.t Outdated
Comment thread t/plugin/opentelemetry.t Outdated
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
Comment thread apisix/plugins/opentelemetry.lua Outdated
Comment thread apisix/plugins/opentelemetry.lua
Comment thread apisix/plugins/opentelemetry.lua Outdated
Comment thread apisix/plugins/opentelemetry.lua Outdated
Comment thread docs/en/latest/plugins/opentelemetry.md
Comment thread apisix/plugins/opentelemetry.lua Outdated
@xuminwlt

Copy link
Copy Markdown

great, brother.

Comment thread apisix/plugins/opentelemetry.lua Outdated
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
Comment thread t/plugin/opentelemetry.t Outdated
Comment thread t/plugin/opentelemetry.t Outdated
Comment thread apisix/plugins/opentelemetry.lua
Comment thread apisix/plugins/opentelemetry.lua
Comment thread apisix/plugins/opentelemetry.lua
Comment thread apisix/plugins/opentelemetry.lua
Comment thread apisix/plugins/opentelemetry.lua Outdated
Comment thread apisix/plugins/opentelemetry.lua
Comment thread apisix/plugins/opentelemetry.lua Outdated
Comment thread apisix/plugins/opentelemetry.lua Outdated
Comment thread apisix/plugins/opentelemetry.lua
Comment thread t/plugin/opentelemetry.t Outdated
Comment thread t/plugin/opentelemetry.t Outdated
@spacewander spacewander changed the title feat: add opentelemetry plugin #3891 feat: add opentelemetry plugin Jan 23, 2022

@bisakhmondal bisakhmondal left a comment

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.

Great job here. Kudos to you!

Comment thread apisix/plugins/opentelemetry.lua Outdated
Comment thread conf/config-default.yaml
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
@moonming

moonming commented Jan 25, 2022

Copy link
Copy Markdown
Member

Comment on lines +25 to +26
local trace_id_ratio_sampler_new =
require("opentelemetry.trace.sampling.trace_id_ratio_sampler").new

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.

Suggested change
local trace_id_ratio_sampler_new =
require("opentelemetry.trace.sampling.trace_id_ratio_sampler").new
local trace_id_ratio_sampler_new = require("opentelemetry.trace.sampling.trace_id_ratio_sampler").new

I personally prefer to put them on the same line.

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.

I guess it's for Linting? > 100 char

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, for linting.

@spacewander
spacewander merged commit 7617e19 into apache:master Jan 26, 2022
@spacewander

Copy link
Copy Markdown
Member

Merged. Thanks!
Let's update the README too

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.

request help: opentelemetry luajit SDK and intergration with APISIX

8 participants