Opentelemetry logs - context/ placeholder replacements gettingprefixed to log message

Created on 10 January 2025, 3 months ago

Problem/Motivation

Opentelemetry logs:
Context/ placeholder replacements getting prefixed to log message.

Steps to reproduce

Log message:

    $this->logger
      ->notice('Message: @message',
        [
          '@message' => 'My message',
        ]);

Output:

{"@message":"My message","base_url":"https://drupal.ddev.site","channel":"my_module","ip":"192.168.97.4","link":"","message":"Message: My message","referer":"","request_uri":"https://tvh.ddev.site/api/label-list","timestamp":1736501969,"uid":"61"}

See that "My message" replacement text prefixed to opentelemetry log.

Proposed resolution

Fix code in `log` method

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India gaurav_manerkar Vasco Da Gama, Goa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024