Skip to content

[Bug] java-agent 8.7+,TraceContext.traceId() can't get traceId in ServerInterceptor #9083

Closed

Description

@zzhi

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

Java Agent (apache/skywalking-java)

What happened

with skywalking-agent 8.7+ , TraceContext.traceId() can't get traceId in ServerInterceptor

skywalking-agent 8.6 ok

AK0IGRoc8y

skywalking-agent 8.7 tid:"N/A"
1Oiti7QE2L

What you expected to happen

with skywalking-agent 8.7、8.8+ , TraceContext.traceId() can get traceId in ServerInterceptor

How to reproduce

-javaagent:/Users/bj89089ml/Documents/sky-agent/apache-skywalking-apm-bin-es7-8.7/agent/skywalking-agent.jar
-Dskywalking.agent.service_name=test
-Dskywalking.collector.backend_service=127.0.0.1:11800
-Dskywalking.logging.output=CONSOLE

maven dependency apm-toolkit-trace version 8.7.0+

grpc-scenario
code in org.apache.skywalking.apm.testcase.grpc.provider.interceptor.ProviderInterceptor

Anything else

no

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    bug
    on May 17, 2022
  2. changed the title [-][Bug] agent 8.7+,TraceContext.traceId() can't get traceId in ServerInterceptor[/-] [+][Bug] java-agent 8.7+,TraceContext.traceId() can't get traceId in ServerInterceptor[/+] on May 17, 2022
  3. wu-sheng commented on May 17, 2022

    @wu-sheng
    Member

    The upstream doesn't guarantee all plugins' behaviors didn't change from version to version. We also don't think this is a bug. The current version is on 8.11, there are several changes that happened for the gRPC plugin, you should track them to see what changed.

  4. added
    java
    on May 17, 2022
  5. locked and limited conversation to collaborators on May 17, 2022
  6. converted this issue into a discussion #9087 on May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugjava

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions