Latest krakend/builder otel version mismatch with plugins

9 views
Skip to first unread message

Alberto Garcia Taravillo

unread,
Apr 23, 2025, 5:40:23 AMApr 23
to KrakenD Community
Hey,

I have a backend plugin that modifies or ignore the request that has to be made using some options.
The thing is I need to add opentelemetry so I don't lose traces after modifications. A problem with versions has appeared. 
Build is ok but when loading the plugins I receive the following error on krakend:
plugin was built with a different version of package go.opentelemetry.io/otel/internal

The plugin uses:



My plugin/go.mod
opentelemetry-go-contrib/instrumentation/net/http/otelhttp/go.mod at zpages/v0.58.0 · open-telemetry/opentelemetry-go-contrib · GitHub
v 0.58 uses /otel:1.33

Checking the   krakend-ce/go.mod at v2.9.4 · krakend/krakend-ce · GitHub
uses
  1. github.com/krakend/krakend-otel v0.9.1 ( krakend-otel/go.mod at v0.9.1 · krakend/krakend-otel · GitHub uses   go.opentelemetry.io/otel v1.33.0)
  2. go.opentelemetry.io/otel/trace v1.33.0

So... clearly I'm missing something... 
images used in dockerfile:
FROM krakend/builder:2.9.4
FROM krakend:2.9.4 did you experiment something similar? Are you able to reproduce the mismatch with latest version?
How can I resolve the conflict? Thanks.


Daniel Ortiz

unread,
Apr 23, 2025, 7:35:36 AMApr 23
to Alberto Garcia Taravillo, KrakenD Community
Hi Alberto!

You can use the check-plugin command to check what you need to update.

Best regards,
Daniel Ortiz Daniel Ortiz
CIO
KrakenD Logo
LinkedIn icon  Twitter icon
Confidentiality Notice: This email, including any attachments, may contain confidential and privileged information for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately and destroy all copies of this email. Thank you. This email has been sent in accordance with the European Union General Data Protection Regulation (EU GDPR).


--
You received this message because you are subscribed to the Google Groups "KrakenD Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to community+...@krakend.io.
To view this discussion visit https://groups.google.com/a/krakend.io/d/msgid/community/5aa93e5a-161f-49f4-8b3e-11d3543bb8c8n%40krakend.io.

Alberto Garcia Taravillo

unread,
Apr 25, 2025, 6:56:56 AMApr 25
to KrakenD Community, Daniel Ortiz, KrakenD Community
Hi,

You're right. 
After using check-plugin I've updated the versions as were mentioneded.

Thanks for pointing that out
Reply all
Reply to author
Forward
0 new messages