Skip to content

Operation name/ Operation id missing for manual created threads #3569

Closed
@Charlie441324219

Description

@Charlie441324219

Expected behavior

Parent thread pass Operation name/ Operation id to children thread

Actual behavior

Operation name/ Operation id is missing for manual created threads (new Thread().start()), but works fine with CompletableFuture.runAsync()

To Reproduce

		telemetry.trackEvent(baseHeaders, null, membershipNbr, "AI_LOG_PARENT_THREAD");

		new Thread(() -> telemetry.trackEvent(baseHeaders, null, membershipNbr, "AI_LOG_CHILDREN_THREAD_THREAD")).start();//Operation name/ Operation id missing HERE

		CompletableFuture.runAsync(() -> telemetry.trackEvent(baseHeaders, null, membershipNbr, "AI_LOG_CHILDREN_THREAD_THREAD_POOL"));

System information

Please provide the following information:

  • SDK Version:3.4.17
  • OS type and version:ios, java 11
  • Application Server type and version (if applicable):
  • Using spring-boot?no
  • Additional relevant libraries (with version, if applicable):

Screenshots

Screenshot 2024-03-04 at 10 34 02 AM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions