Repository navigation
Releases
Releases · trevor-ralph/cfml-otel
v0.3.4
Added
- The bridge and the agent extension are published to Maven Central as
io.github.trevor-ralph:cfml-otel-bridgeand
io.github.trevor-ralph:cfml-otel-agent-extension, with sources, javadoc and signatures. The build is now
reproducible (fixed jar timestamps, built in the pinned build image), and the release workflow uploads only jars
that are byte-identical to the ones in the release zip.
Changed
- The Maven groupId is
io.github.trevor-ralph(wascfmlotel). Java package names are unchanged.
Fixed
- Links on the ForgeBox page to files in the repository (LICENSE, tests, docs, the workflows) now go to GitHub at
the release's tag; on the 0.3.3 page they led nowhere.
What's Changed
- Point README and CHANGELOG links at GitHub on the ForgeBox page by @trevor-ralph in #18
- Publish the bridge and agent extension to Maven Central by @trevor-ralph in #19
- Release 0.3.4 by @trevor-ralph in #20
Full Changelog: v0.3.3...v0.3.4
v0.3.3
Added
- Published to ForgeBox:
box install cfml-otel. The ForgeBox entry points
CommandBox at the GitHub release zip, so it installs the same checksummed, attested file, withlib/built.
Changed
- Built and tested with OpenTelemetry javaagent 2.34.0 (was 2.33.1). The bundled API is now 1.68.0, the version
that agent is built on; the agent extension andopentelemetry-instrumentation-apimove with it. - Tested on the latest of every engine: Lucee 8.0.0.310, 7.1.2.195 and 6.2.9.4, and ACF 2025.0.14 and 2023.0.26
as Adobe re-pushed them on 2026-11-26 and 27, with SQL Server 2022 CU28. No code changes were needed.
Documented
- NOTICE lists every bundled third-party jar:
opentelemetry-instrumentation-apiand the SDK fallback's jars in
lib/sdk/were missing (all Apache-2.0, unmodified). The README's acknowledgement says the same, and gives the
right count forlib/sdk/(10 jars, not 11). - SECURITY.md no longer says cfml-otel never exports anything itself: with the SDK fallback, its own exporter
sends to the configured OTLP endpoint. - The README says "every engine" where it said "all four" (Lucee 8 made it five), and lists every jar the build
fetches. The ColdBox module'sModuleConfig.cfcnames its author, asbox.jsondoes.
What's Changed
- Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.3 to 3.6.1 in /java by @dependabot[bot] in #3
- Bump org.apache.maven.plugins:maven-dependency-plugin from 3.8.1 to 3.11.0 in /java by @dependabot[bot] in #2
- Move to OpenTelemetry javaagent 2.34.0 (API 1.68.0) by @trevor-ralph in #6
- Bump org.junit.jupiter:junit-jupiter from 5.13.4 to 6.1.3 in /agent-extension by @dependabot[bot] in #7
- Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.3 to 3.6.1 in /agent-extension by @dependabot[bot] in #8
- Bump org.junit.jupiter:junit-jupiter from 5.13.4 to 6.1.3 in /java by @dependabot[bot] in #4
- Test on the latest engines and tools; install ACF's SQL Server package live by @trevor-ralph in #9
- Bump maven from 3.9.16-eclipse-temurin-21 to 3.9-eclipse-temurin-26 in /dev by @dependabot[bot] in #11
- Fix inaccuracies in NOTICE, README, SECURITY.md and comments by @trevor-ralph in #10
- Build on JDK 25 LTS; keep Dependabot off end-of-life JDK 26 by @trevor-ralph in #12
- Fix the Dependabot ignore that should keep the build off JDK 26 by @trevor-ralph in #14
- Build once per CI run and retry downloads, to stop Maven Central 429s by @trevor-ralph in #15
- Publish releases to ForgeBox by @trevor-ralph in #16
- Release 0.3.3 by @trevor-ralph in #17
New Contributors
- @trevor-ralph made their first contribution in #6
Full Changelog: v0.3.2...v0.3.3
v0.3.2
Changed
span()andmakeCurrent()are faster, most of all on Adobe ColdFusion: scope tokens no longer come from
createUUID(), which costs about 100 µs on ACF, and aspan()looks up its thread's scopes once instead of
twice. Perspan(): ACF 2023 about 105 µs to 62 µs, Lucee 7.1 about 40 µs to 27 µs.
Documented
- A Performance section: what the javaagent costs (CPU per request, query and span, memory, startup, sampling) and
cfml-otel's own calls, from load tests on Lucee and ACF; and why ACF needs Trusted Cache in production (each span
creates a component, whose file ACF otherwise checks every time).
Full Changelog: v0.3.1...v0.3.2
v0.3.1
Fixed
onError()on ACF: with the SDK fallback, the request's SERVER span now gets the exception's type as
error.typeand its message as the status description. ACF's exception is a Java object thatisStruct()
rejects, so these were_OTHERand empty.- SDK fallback: when
init()fails after starting cfml-otel's own SDK, it shuts that SDK down again. The instance
stays a no-op whoseshutdown()does nothing, so the SDK's exporters used to run until the JVM stopped. - Startup checks with the agent also read its configuration file (
otel.javaagent.configuration-file), so
LUCEE_HTTPCLIENT_INSTRUMENTATIONandACF_JDBC_EXTENSIONno longer warn about settings made there. Whether the
agent's HttpClient instrumentation is on follows the agent's own rule (both of its names, and
otel.instrumentation.common.default-enabled=false). setRoute()keeps its one-time warning for real setup problems: a call with no agent SERVER span (acfthread,
a scheduled task) no longer uses it up.- Metrics: asking for an existing instrument name with another unit or description logs a warning (once per
instrument) instead of silently returning the first definition. - Agent extension: no longer keeps the driver's class loader alive, and stops retrying the agent's JDBC internals
after a bounded number of misses.
Documented
- ColdBox: add
onError()when theexceptionHandlerevent itself can fail, since the interceptor then never
ends the request. - The
bindContext()/captureContext()example now hands the function to the thread through therequest
scope: acfthreadbody can't see the starting function's local variables.
Tests
onError()on the fallback SERVER span (error.type, status description) on every SDK engine, and a spec for
the SDK shut down by a failedinit(); both fail without their fix.
Full Changelog: v0.3.0...v0.3.1
v0.3.0
Added
- Agent extension for ACF's built-in database drivers (
lib/agent/cfml-otel-agent-extension.jar, loaded with
-Dotel.javaagent.extensions=). ACF's own drivers (macromedia.jdbc.MacromediaDriver: SQL Server, Oracle, DB2,
MySQL, Sybase) usejdbc:macromedia:URLs, which the agent can't parse, so their queries were traced as
db.system=other_sqlwith no host, port or database name. With the extension they are identified like any other
driver (mssql,server.address,server.port,db.name; tested with SQL Server on ACF 2025 and 2023). New
startup checkACF_JDBC_EXTENSIONwhen it isn't loaded;status().agentExtension. - FusionReactor no longer stops the agent's database spans, given
-Dfr.mixin.black.list=<cfml-otel>/lib/agent/fusionreactor-jdbc-mixin-blacklist.csv. FusionReactor's JDBC
mixins add its own interfaces to driver classes, which the agent can't resolve, so it left every statement class
uninstrumented. The file keeps FusionReactor's mixins out of the JDBC driver packages; FusionReactor still records
cfquerythrough its ColdFusion integration. New startup checkFUSIONREACTOR_JDBC_MIXINSwhen FusionReactor is
attached without it. Reproduced and verified on ACF 2023 with FusionReactor 2026.1.3. - Lucee 8.0 support: integration-tested on Lucee 8.0.0 (Java 25, Tomcat 11) with the agent, without it, and
on ARM. Nothing in cfml-otel needed changing. Lucee 8 still runscfhttpon a worker thread (LDEV-6519),
so keep the agent's HttpClient instrumentation off there as on Lucee 6 and 7. otel.setRoute("orders.checkout"): names the request by its route instead of its file, for front
controllers (Fusebox, FW/1,index.cfm?action=) where every request wasGET /index.cfm. With the agent it
renames the agent's SERVER span and setshttp.routeon it and on the agent'shttp.server.request.duration
metric, through the agent's own route mechanism (lib/now ships OpenTelemetry's
opentelemetry-instrumentation-api, which must be loaded by the same class loader asopentelemetry-api;
setRoute()detects when it isn't and logs where each came from). The ColdBox module calls it for you with
the matched route pattern or the event name (setRoutesetting, on by default).- Bridge-only install for servers that already have
opentelemetry-apion their classpath: load only the bridge
jar. Supported from API 1.38.0; CI compiles the bridge against it and runs the full suite on ACF 2023 with
API 1.38.0 incfusion/lib. - Startup checks:
DUPLICATE_OTEL_API(the API is on the classpath more than once),SERVER_OTEL_API(info:
running on the server's API),OTEL_API_TOO_OLD, andOTEL_ENV_NOT_INHERITED(Linux:OTEL_*variables set
for the container but not in the JVM, as when ACF is started throughsudo).status()addsapiPathand
bundledApiVersion.OTHER_APM_AGENTnow says that FusionReactor has been seen to stop the agent's database
spans. - One instance shared by several applications (server scope) works in applications without the module's
mapping or jars (it used to fail on the first span or metric there), documented in the README. - A sample Grafana dashboard (docs/grafana).
otel.onAbort(), to call fromApplication.cfconAbort(). Requests ended bycfabort/cflocationskip
onRequestEnd()on both engines, which left their scopes on the pooled thread and, with the SDK
fallback, their SERVER span un-ended.
Changed
- Span and metric objects are copied from templates instead of looked up by name on each call: much faster on
Lucee, and independent of the calling application's mappings. - ColdBox: SERVER spans are now named by route or event (
GET /api/users/:id/,GET main.index) instead of
GET /index.cfm. SetsetRoute: falseto keep the old names.
Documented
- FusionReactor alongside the agent: why the agent's database spans disappeared and the fix (above), how to choose
which of the two agents handles JDBC (per server, or per driver), and how to filter FusionReactor's internal log
streams out of Loki. - ACF started as a service: configure the agent with
-Dotel.*injvm.config, sincesudo/ init scripts
drop the environment. onError()marks a request as failed even when its error page goes out as 200 (now tested).- Tomcat JMX metrics and the experimental JVM metrics as recommended agent settings.
Fixed
- SDK fallback: the request's SERVER span is parented on the inbound trace headers or nothing, never on a
context an earlier request left current on the pooled thread. - SDK fallback: a
service.nameset throughOTEL_RESOURCE_ATTRIBUTESis no longer replaced by the
application name. - ColdBox: when an event throws and the app has an
exceptionHandler, the SERVER span gets the status that
handler chooses. A handler that answers a not-found error with a 404 no longer leaves the span marked
ERROR (with the agent too); the exception is still recorded. Without a handler the status is 500. - ColdBox with the SDK fallback: a
relocate()no longer records the pre-redirect status (usually 200):
it records the redirect's status once the app'sonAbort()callsotel.onAbort(), and none before that. - ColdBox: the module no longer has to be installed in a folder named
cfml-otel. httpSpan()/http(): a failure while preparing the span (a URL with an unusable port, unusable options)
no longer prevents the call itself; it runs untraced.- SDK fallback:
url.queryon the SERVER span has signature and access-key parameters redacted, like
url.fullon CLIENT spans. - SDK fallback: with
OTEL_SDK_DISABLED=truethe fallback reportsSDK_FALLBACK_FAILEDinstead of claiming
to run an SDK that exports nothing. - SDK fallback: the OTLP sender keeps its connection alive between exports instead of reconnecting each time.
Tests
- The Lucee 7 engines now run Lucee 7.1.2 (was 7.0.6).
- Every agent engine loads the agent extension; on ACF the built-in SQL Server driver's spans must now be identified
(system, host, port, database) instead of being an expected failure. JUnit tests run ACF's URLs through the
agent's own JDBC URL parser. - TestBox unit specs for the CFML side (
tests/specs), run on every engine, including the ColdBox interceptor's
branches with fakes (an app without anexceptionHandler, the automatic route); CodeQL code scanning for the
Java bridge, the Python test harness and the workflows.
Removed
- The original classloading spike harness (
spike/). Its findings are kept as
docs/classloading-spike.md; the integration suite covers all of them.
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Added
- Startup checks. When the
OTelinstance is created it checks the JVM and reports problems once in the
cfml-otellog and inotel.status().warnings, with stable codes:NO_OTEL_AGENT,AGENT_NOT_BRIDGED,
SDK_DISABLED,AGENT_OLDER_THAN_TESTED,OTHER_APM_AGENT(FusionReactor, New Relic, Datadog,
AppDynamics, Dynatrace, Elastic APM, SeeFusion, …),LUCEE_HTTPCLIENT_INSTRUMENTATION,
OTHER_IMPLEMENTATION,BRIDGE_NOT_LOADED,SDK_FALLBACK_FAILED.status()also reports the agent and API
versions, every JVM agent, andmode(agent,sdk,other,noop). Turn the log off with
logDiagnostics: false. otel.http()andotel.httpSpan()for outbound HTTP: one CLIENT span per call on every engine, with
the stable HTTP semantic conventions. Credentials and signature parameters are redacted fromurl.full;
4xx/5xx and connection failures are errors. On ACF, where the agent already tracescfhttp, the helpers
leave the span to it (status().httpMode); override withcfhttpSpans.- SDK fallback (opt-in,
sdkFallback: true, jars inlib/sdk/): without the javaagent, cfml-otel runs
an OpenTelemetry SDK of its own, configured by the standardOTEL_*variables, one per application, and
creates each request's SERVER span. NewonRequestStart()andshutdown()forApplication.cfc; the
ColdBox module calls them itself.serviceNamesetsservice.nameper app. closeLeakedScopes(): scope cleanup forcfthread/runAsyncbodies and mid-request use.onError(exception, [statusCode]).
Fixed
- ColdBox: app overrides in
moduleSettings["cfml-otel"]were ignored, the key 0.1.0's README showed.
ColdBox merges overrides by the module's model namespace,cfmlotel. Both keys now work; the README shows
moduleSettings["cfmlotel"].
Documented
cflog/writeLogand LogBox'sCFAppenderneed nothing from cfml-otel: the agent captures them, with
the trace ID, on both engines. Also what else the agent ships (engine and Tomcat logs) and how to filter it.- Running alongside other APM agents, beyond FusionReactor; tested with Datadog's agent as the OTel API.
Tests
- Bridge unit tests (JUnit) for the startup checks, HTTP attributes and the OTLP sender.
- CI runs every engine without the agent too (SDK fallback), Lucee on ARM, and ACF with the agent's
HttpClient instrumentation off.
Full Changelog: v0.1.0...v0.2.0
v0.1.0
Full Changelog: https://github.com/trevor-ralph/cfml-otel/commits/v0.1.0