- function-orchestrator logs
- Base "heap logs" (from logResourceUsage) are present
- … but missing requestId value
- … but warn in normalized.dropped.no_such_field that the following messages aren't defined in the template, and so were dropped: stream, logsource, kubernetes, program, normalized_message, metadata, time, docker, rsyslog, timestamp
- … and the "DURING orchestrate()" / "AFTER orchetrate()" ones are missing?
- All other log messages appear to be missing, most importantly "Incoming orchestrator request" and "Outgoing orchestrator response" for overall traceability.
- Base "heap logs" (from logResourceUsage) are present
- function-evaluator logs
- "calling executor in evaluator.." / "...finished calling executor in evaluator" are present
- … but missing requestId value
- … but warn in normalized.dropped.no_such_field that the following messages aren't defined in the template, and so were dropped: metadata, stream, rsyslog, logsource, kubernetes, time, timestamp, program, normalized_message, docker
- All other log messages appear to be missing, including 'Incoming evaluator request', 'calling execute in executor..., original time: …' etc.
- "calling executor in evaluator.." / "...finished calling executor in evaluator" are present
Description
Details
| Title | Reference | Author | Source Branch | Dest Branch | |
|---|---|---|---|---|---|
| Add integration test for WikimediaEcsFormatMiddleware | repos/data-engineering/service-utils!11 | tchin | add-ecs-test | main | |
| update service-utils version for levels fix | repos/abstract-wiki/wikifunctions/function-orchestrator!291 | ecarg | grace/T386972/bump-service-util-version | main | |
| update service-utils version for levels fix | repos/abstract-wiki/wikifunctions/function-evaluator!319 | ecarg | grace/T386972/bump-service-util-version | main |
Related Objects
Event Timeline
tchin opened https://gitlab.wikimedia.org/repos/data-engineering/service-utils/-/merge_requests/10
Fix Winston Level Erasure
tchin merged https://gitlab.wikimedia.org/repos/data-engineering/service-utils/-/merge_requests/10
Fix Winston Level Erasure
ecarg opened https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-evaluator/-/merge_requests/319
update service-utils version for levels fix
ecarg opened https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/291
update service-utils version for levels fix
This was a wild combination of issues which resulted in me submitting an issue upstream.
So, a quick explanation working backwards:
- The library I'm using to deep merge when reformatting log messages doesn't merge Symbols (seems like a bug)
- Winston uses symbols for internal state
- If Symbol('level') is not in the logged message object, apparently Winston doesn't output anything at all
- Because the symbol was only erased when the logged message was reformatted, logging still looked like it worked
- The more we fixed T383448, the more logging looked like it didn't work
- Because the test was a unit test on the formatter and not an integration test on the entirety of Winston, it didn't catch it
jforrester merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-evaluator/-/merge_requests/319
update service-utils version for levels fix
jforrester merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/291
update service-utils version for levels fix
tchin opened https://gitlab.wikimedia.org/repos/data-engineering/service-utils/-/merge_requests/11
Add integration test for WikimediaEcsFormatMiddleware
tchin merged https://gitlab.wikimedia.org/repos/data-engineering/service-utils/-/merge_requests/11
Add integration test for WikimediaEcsFormatMiddleware
Change #1122962 had a related patch set uploaded (by Jforrester; author: Jforrester):
[operations/deployment-charts@master] wikifunctions: Update evaluators from 2025-02-20-142923 to 2025-02-24-145135
Change #1122963 had a related patch set uploaded (by Jforrester; author: Jforrester):
[operations/deployment-charts@master] wikifunctions: Update orchestrator from 2025-02-20-140756 to 2025-02-25-210518
Change #1122962 merged by jenkins-bot:
[operations/deployment-charts@master] wikifunctions: Update evaluators from 2025-02-20-142923 to 2025-02-24-145135
Change #1122963 merged by jenkins-bot:
[operations/deployment-charts@master] wikifunctions: Update orchestrator from 2025-02-20-140756 to 2025-02-25-210518
Huge thanks to @tchin for the fixes, they've helped lots, but I think there's still failures, probably at our end.
Update as of deployment just now:
- Orchestrator now has http.request.id; evaluator has it there and also under http.request.headers.x-request-id. However, they don't seem to be shared UUIDs – searching for the value in the evaluator doesn't show the orchestrator call that commissioned it, let alone the MW originator.
- No such field no longer warns about the 'info' key (or whatever severity level), success! The others are still warned about though, notably timestamp – do we want to fix that?
- Loads of logs are now getting emitted in the orchestrator; for a single http.request.id value, we got: 84x function_duration_milliseconds for z881 (and an extra one with "implementation: undefined"), and 1x for Z6825 2x outgoing orchestrator response 1x for incoming orchestrator request, calling orchestrator..., ...finished calling orchestrator, ... orchestrator finish fetching wikidata entity <l2>
- We're also still getting the general heap and "DURING orchestrate()" / "AFTER orchetrate()" logs there
- In the evaluator, Incoming evaluator request logs are now present, but much more than calling executor in evaluator.../...finished calling executor in evaluator etc. (~100x vs. 4x?), and some logs are blank.
Is this good enough for sign-off? Over to @ecarg.