Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): add otelto opentdf services #1858

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

sujankota
Copy link
Contributor

Proposed Changes

Checklist

  • I have added or updated unit tests
  • I have added or updated integration tests (if appropriate)
  • I have added or updated documentation

Testing Instructions

Comment on lines 196 to 200
if as.Tracer != nil {
var span trace.Span
ctx, span = as.Tracer.Start(ctx, "GetDecisions")
defer span.End()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking we might want to create some type of metrics / tracing package that we could use to abstract away a lot of these if as.Tracer != nil checks

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have a tracing package so we can probably add it there.

@sujankota sujankota marked this pull request as ready for review January 28, 2025 16:10
@sujankota sujankota requested review from a team as code owners January 28, 2025 16:10
@sujankota sujankota requested a review from a team as a code owner January 28, 2025 17:54
docker-compose.yaml Show resolved Hide resolved
"gopkg.in/natefinch/lumberjack.v2"
)

const ServiceName = "github.com/opentdf/platform/service"
const ServiceName = "opentdf-service"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a naming convention we are following here?

service/tracing/otel.go Show resolved Hide resolved
service/tracing/otel.go Outdated Show resolved Hide resolved
@dmihalcik-virtru dmihalcik-virtru self-requested a review February 3, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants