-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[contrib] add orchestrion integration configuration (#3074)
Signed-off-by: Eliott Bouhana <eliott.bouhana@datadoghq.com> Co-authored-by: Eliott Bouhana <eliott.bouhana@datadoghq.com> Co-authored-by: Dario Castañé <dario.castane@datadoghq.com>
- Loading branch information
1 parent
d8c71d4
commit c9ff7bb
Showing
237 changed files
with
20,483 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Unless explicitly stated otherwise all files in this repository are licensed | ||
# under the Apache License Version 2.0. | ||
# This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
# Copyright 2023-present Datadog, Inc. | ||
--- | ||
# yaml-language-server: $schema=https://datadoghq.dev/orchestrion/schema.json | ||
meta: | ||
name: gopkg.in/DataDog/dd-trace-go.v1/contrib/99designs/gqlgen | ||
description: gqlgen is a Go library for building GraphQL servers without any fuss. | ||
|
||
aspects: | ||
- id: New | ||
join-point: | ||
one-of: | ||
- function-call: github.com/99designs/gqlgen/graphql/handler.New | ||
- function-call: github.com/99designs/gqlgen/graphql/handler.NewDefaultServer | ||
advice: | ||
- wrap-expression: | ||
imports: | ||
handler: github.com/99designs/gqlgen/graphql/handler | ||
gqlgentrace: gopkg.in/DataDog/dd-trace-go.v1/contrib/99designs/gqlgen | ||
template: |- | ||
func(s *handler.Server) *handler.Server { | ||
s.Use(gqlgentrace.NewTracer()) | ||
return s | ||
}({{ . }}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Unless explicitly stated otherwise all files in this repository are licensed | ||
# under the Apache License Version 2.0. | ||
# This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
# Copyright 2023-present Datadog, Inc. | ||
--- | ||
# yaml-language-server: $schema=https://datadoghq.dev/orchestrion/schema.json | ||
meta: | ||
name: gopkg.in/DataDog/dd-trace-go.v1/contrib/IBM/sarama.v1 | ||
description: Sarama is a Go library for Apache Kafka | ||
|
||
aspects: | ||
- id: NewConsumer | ||
join-point: | ||
one-of: | ||
- function-call: github.com/IBM/sarama.NewConsumer | ||
- function-call: github.com/IBM/sarama.NewConsumerClient | ||
advice: | ||
- wrap-expression: | ||
imports: | ||
saramatrace: gopkg.in/DataDog/dd-trace-go.v1/contrib/IBM/sarama.v1 | ||
sarama: github.com/IBM/sarama | ||
template: |- | ||
func(c sarama.Consumer, err error) (sarama.Consumer, error) { | ||
if c != nil { | ||
c = saramatrace.WrapConsumer(c) | ||
} | ||
return c, err | ||
}({{ . }}) | ||
- id: NewSyncProducer | ||
join-point: | ||
one-of: | ||
- function-call: github.com/IBM/sarama.NewSyncProducer | ||
- function-call: github.com/IBM/sarama.NewSyncProducerFromClient | ||
advice: | ||
- wrap-expression: | ||
imports: | ||
saramatrace: gopkg.in/DataDog/dd-trace-go.v1/contrib/IBM/sarama.v1 | ||
sarama: github.com/IBM/sarama | ||
template: |- | ||
{{- $cfg := .Function.ArgumentOfType "sarama.Config" -}} | ||
func(p sarama.SyncProducer, err error) (sarama.SyncProducer, error) { | ||
if p != nil { | ||
p = saramatrace.WrapSyncProducer( | ||
{{- if $cfg -}} | ||
{{ $cfg }}, | ||
{{- else -}} | ||
nil, | ||
{{- end -}} | ||
p, | ||
) | ||
} | ||
return p, err | ||
}({{ . }}) | ||
- id: NewAsyncProducer | ||
join-point: | ||
one-of: | ||
- function-call: github.com/IBM/sarama.NewAsyncProducer | ||
- function-call: github.com/IBM/sarama.NewAsyncProducerFromClient | ||
advice: | ||
- wrap-expression: | ||
imports: | ||
saramatrace: gopkg.in/DataDog/dd-trace-go.v1/contrib/IBM/sarama.v1 | ||
sarama: github.com/IBM/sarama | ||
template: |- | ||
{{- $cfg := .Function.ArgumentOfType "sarama.Config" -}} | ||
func(p sarama.AsyncProducer, err error) (sarama.AsyncProducer, error) { | ||
if p != nil { | ||
p = saramatrace.WrapAsyncProducer( | ||
{{- if $cfg -}} | ||
{{ $cfg }}, | ||
{{- else -}} | ||
nil, | ||
{{- end -}} | ||
p, | ||
) | ||
} | ||
return p, err | ||
}({{ . }}) |
Oops, something went wrong.