Commit Graph

17 Commits

Author SHA1 Message Date
Fu Wei 20107527e8
Merge pull request #22 from containerd/dependabot/github_actions/containerd/project-checks-1.2.2 2025-04-08 09:40:34 -04:00
dependabot[bot] 47ef5f469c
build(deps): bump containerd/project-checks from 1.1.0 to 1.2.2
Bumps [containerd/project-checks](https://github.com/containerd/project-checks) from 1.1.0 to 1.2.2.
- [Commits](434a071576...d7751f3c37)

---
updated-dependencies:
- dependency-name: containerd/project-checks
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 17:33:58 +00:00
Derek McGowan fa91cafe17
Merge pull request #3 from djdongjin/add-dependabot-ci
Add dependabot and upgrade golang and dependency versions
2025-01-09 12:17:17 -07:00
Jin Dong 2d46141c9f upgrade golang, deps, CI versions
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
2025-01-09 16:25:19 +00:00
Jin Dong 64922e78c6 Add dependabot CI
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
2025-01-09 16:25:11 +00:00
Mike Brown ef43615658
Merge pull request #2 from djdongjin/fix-concurrent-map-write-panic
Fix concurrent map panic on metadata
2025-01-08 13:03:20 -06:00
Jin Dong 2ba3be1e39 Fix concurrent map panic on inject metadata
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
2025-01-02 16:59:04 +00:00
Jin Dong f50a9220fc UT for concurrent inject/extract metadata
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
2024-12-27 17:44:17 +00:00
Fu Wei ea5083fda7
Merge pull request #1 from klihub/fixes/ditch-import-path-checks
'*.go': ditch import path checks.
2024-03-05 09:53:40 +08:00
Krisztian Litkey 3c47fdd9a2
'*.go': ditch import path checks.
Remove golang 'custom import path check' comments. It's a pure
accident (of the monkey see monkey do type) that we have them.
They reportedly break RPM package building for some otelttrpc
downstream consumers.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-03-04 17:01:46 +02:00
Krisztian Litkey 5909713624
.github: add CI workflow.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-01-15 08:54:05 +02:00
Krisztian Litkey f63b92f16e
docs: add doc.go, README.md and LICENSE.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-01-15 08:54:05 +02:00
Krisztian Litkey 7ce93bb807
otelttrpc: lift over example from otelgrpc.
Lift over the sample client/server code from otelgrpc,
gutting out any bits we don't support yet (streaming),
and adapting it for (otel)ttrpc.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-01-13 19:56:28 +02:00
Krisztian Litkey 043c02aa71
otelttrpc: add minimal instrumentation tests.
Borrow minimal example and instrumentation tests from PR#134.

Co-authored-by: Swagat Bora <sbora@amazon.com>
Co-authored-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-01-13 19:55:03 +02:00
Krisztian Litkey e547fdcdfa
otelttrpc: implement opentelemetry instrumentation.
This commit adds a unary client and server interceptors
for opentelemetry tracing instrumentation. The interceptors
can be passed as ttrpc.ClientOpts and ttrpc.ServerOpt to
ttrpc during client and server creation with code like this:

    client := ttrpc.NewClient(
        conn,
        ttrpc.UnaryClientInterceptor(
            otelttrpc.UnaryClientInterceptor(),
        ),
    )

and

    server, err := ttrpc.NewServer(
        ttrpc.WithUnaryServerInterceptor(
            otelttrpc.UnaryServerInterceptor(),
        ),
    )

These interceptors will then automatically handle generating
trace Spans for all called and served unary method calls. If
the rest of the code is properly set up to collect and export
tracing data to opentelemetry, these spans should show up as
part of the collected traces.

This code was written by lifting over the corresponding gRPC
instrumentation bits from the opentelemetry contrib go package,
leaving out bits considered unnecessary for an initial version,
then replacing gRPC-specific bits by corresponding ttRPC code.

The left out bits were intercepting filters as unnecessary and
the streaming interceptors as too complex for a first version.

Co-authored-by: Krisztian Litkey <krisztian.litkey@intel.com>
Co-authored-by: Swagat Bora <sbora@amazon.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-01-13 17:42:46 +02:00
Krisztian Litkey 445ee9234e
.gitignore: add .gitignore.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-01-11 20:13:36 +02:00
Krisztian Litkey 88de604929
repo: initial empty commit.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-01-11 17:40:11 +02:00