kubewharf / kelemetry

Global control plane tracing for Kubernetes
Apache License 2.0
252 stars 28 forks source link

feat(extension): add http extension trace #143

Closed xuqingyun closed 1 year ago

xuqingyun commented 1 year ago

Description

some trace systems may not support jaeger-storage-plugin api, so add trace extension support for general http api

this is transform-config demo for pod runtime trace extension:

  "00000020":
    displayName: http trace extension
    modifierName: extension
    args:
      kind: HTTPTrace
      traceBackends:
      - tagFilters:
          resource: pods
          nodes: ".+"
        argsTemplates:
          node: "{{.nodes}}"
          pod: "{{.namespace}}/{{.name}}"
          start: "{{unixMicro .start}}"
          end: "{{unixMicro .end}}"
          limit: "100"
        urlTemplate: "http://127.0.0.1:16686/api/traces"
        forObject: true
      maxConcurrency: 100
      totalTimeout: 60s

display demo: image

Related issues

Special notes for your reviewer:

codecov-commenter commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (f5b7d60) 37.63% compared to head (8e5e9ce) 37.63%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #143 +/- ## ======================================= Coverage 37.63% 37.63% ======================================= Files 32 32 Lines 2559 2559 ======================================= Hits 963 963 Misses 1533 1533 Partials 63 63 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.