Skip to content

Creating ChildTraceParent retuns 'null' when running in Kubernetes #879

@travisnielsen

Description

@travisnielsen

Expected behavior

I'm working with @dhaval24 on an approach to set correlation between message queue consumers / producers as discussed in issue #764. My approach is based on this sample application.

Telemetry correlation works 100% locally on my laptop and also locally when running in Docker. My expectation is this would work the same in Kubernetes.

Actual behavior

The call for TraceContextCorrelation.generateChildDependencyTraceparent() returns null when running in Kubernetes.

To Reproduce

Deploy workload to AKS (version 1.12.5).

Sample Application

Full source code is here

System information

Please provide the following information:

  • SDK Version: 2.3.1
  • OS type and version: Debian 9
  • Application Server type and version (if applicable): Tomcat
  • Using spring-boot? Yes
  • Additional relevant libraries (with version, if applicable): OpenJDK 8

My Kubernetes environment is Azure Kubernetes Service (AKS) version 1.12.5.

Logs

N/A

Screenshots

Example of the application running locally in Docker:

image

Example of ThreadContext in Kubernetes and the null value returned for generateChildDependencyTraceparent(). I handle this null condition in my code.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions