GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

withCorrelation()

Home > @gooddata/sdk-backend-spi > IAnalyticalBackend > withCorrelation

IAnalyticalBackend.withCorrelation() method

Sets request correlation metadata that will be included in HTTP requests to the backend. If the IAnalyticalBackend instance already has correlation metadata set, the new metadata will be merged with the existing one. This method provides more flexibility than withTelemetry by allowing arbitrary key-value pairs to be sent.

Signature:

withCorrelation(correlationMetadata: IRequestCorrelationMetadata): IAnalyticalBackend;

Parameters

ParameterTypeDescription
correlationMetadataIRequestCorrelationMetadatakey-value pairs to include as correlation metadata

Returns:

IAnalyticalBackend

a new instance of backend configured with the merged correlation metadata

  • IAnalyticalBackend.withCorrelation() method
  • Parameters
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use