-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This change introduces a singleton tracer that can be used for user traces. We want to keep the default global singleton for system traces in the future, so we don't cause any conflicts between the two. The change also add basic instrumentation from event ingestion to step runs for now. The following are not added and will be follow ups. - invoke - fan out - tracestate forwarding to SDKs --------- Co-authored-by: Darwin D Wu <darwin67@users.noreply.github.com>
- Loading branch information
Showing
14 changed files
with
357 additions
and
83 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
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,48 @@ | ||
package consts | ||
|
||
const ( | ||
// system attributes | ||
OtelSysAccountID = "sys.account.id" | ||
OtelSysWorkspaceID = "sys.workspace.id" | ||
OtelSysAppID = "sys.app.id" | ||
OtelSysEventData = "sys.event" | ||
OtelSysEventRequestID = "sys.event.request.id" | ||
OtelSysEventIDs = "sys.event.ids" | ||
OtelSysBatchID = "sys.batch.id" | ||
OtelSysIdempotencyKey = "sys.idempotency.key" | ||
|
||
OtelSysFunctionID = "sys.function.id" | ||
OtelSysFunctionSlug = "sys.function.slug" | ||
OtelSysFunctionVersion = "sys.function.version" | ||
OtelSysFunctionScheduleAt = "sys.function.time.schedule" | ||
OtelSysFunctionStartAt = "sys.function.time.start" | ||
OtelSysFunctionEndAt = "sys.function.time.end" | ||
OtelSysFunctionStatus = "sys.function.status" | ||
OtelSysFunctionOutput = "sys.function.output" | ||
|
||
OtelSysStepScheduleAt = "sys.step.time.schedule" | ||
OtelSysStepStartAt = "sys.step.time.start" | ||
OtelSysStepEndAt = "sys.step.time.end" | ||
OtelSysStepStatus = "sys.step.status" | ||
OtelSysStepAttempt = "sys.step.attempt" | ||
OtelSysStepOutput = "sys.step.output" | ||
OtelSysStepOutputSizeBytes = "sys.step.output.size.bytes" | ||
|
||
// SDK attributes | ||
OtelAttrSDKServiceName = "sdk.app.id" | ||
OtelAttrSDKRunID = "sdk.run.id" | ||
|
||
// otel scopes | ||
OtelScopeEventAPI = "event.api.inngest" | ||
OtelScopeEventIngestion = "event.inngest" | ||
OtelScopeCron = "cron.inngest" | ||
OtelScopeEnv = "env.inngest" | ||
OtelScopeApp = "app.env.inngest" | ||
OtelScopeFunction = "function.app.env.inngest" | ||
OtelScopeStep = "step.function.app.env.inngest" | ||
|
||
// otel collector filter keys | ||
OtelUserTraceFilterKey = "inngest.user" | ||
|
||
OtelPropagationKey = "sys.trace" | ||
) |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.