Skip to content

"Invalid attribute value set for key" when serializing array of objects #1458

@isaac-s

Description

@isaac-s

Using SDK 3.9.0 with Winston 3.17.0, the following results in Invalid attribute value set for key: x [].

const appInsights = require("applicationinsights");

appInsights
  .setup(process.env.APPLICATIONINSIGHTS_CONNECTION_STRING)
  .setAutoCollectConsole(true, true)
  .start();

const winston = require("winston");

const logger = winston.createLogger({
  transports: [
    new winston.transports.Console()
  ]
});

logger.info("hello", {
  x: [{
    a: "b",
  }]
});

appInsights.flushAzureMonitor().then();

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions