elastic / elastic/apm-agent-nodejs

Empty Context Keys in Transaction Serialization

Open
#2,416 1 comment 0 reactions 0 assignees View on GitHub
agent-nodejs
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

The Agent will produce empty context object for transaction context when it's not set. This is due to the pattern of empty objects being set

https://github.com/elastic/apm-agent-nodejs/blob/ba570ba2af5243fa99cc1a36421cc2eb5ea930c3/lib/instrumentation/transaction.js#L154-L155

Would is be safe to change this behavior to _not_ serialize the property if it's unset/null/false instead of setting an empty object? If so, we should change it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.