Documentation
¶
Overview ¶
Package mintcore provides shared code for the fullsend token mint implementations (GCP Cloud Function and local dev mint).
Index ¶
- Constants
- Variables
- func AccessGCPSecret(ctx context.Context, gcpProjectNum, secretID string) ([]byte, error)
- func AuthorizeToken(claims *Claims, perRepoWIFRepos map[string]bool) error
- func BuildRepoProviderID(owner, repo string) string
- func BuiltInRoles() []string
- func CallerAllowed(allowlist []string, repository, repositoryOwner string) bool
- func CheckServiceBaseURL(name, raw string) error
- func EnvTruthy(v string) bool
- func FindInstallation(ctx context.Context, githubBaseURL, jwt, org, repo string) (int64, error)
- func FindOrgInstallation(ctx context.Context, githubBaseURL, jwt, org string) (int64, error)
- func ForeignVariableName(role string) string
- func GenerateAppJWT(appID string, pemData []byte) (string, error)
- func GetOrgVariable(ctx context.Context, githubBaseURL, installationToken, org, name string) (value string, exists bool, err error)
- func GetRepoVariable(ctx context.Context, ...) (value string, exists bool, err error)
- func GrantedPermissionLevel(granted map[string]string, permission string) string
- func HasRole(role string) bool
- func InstallationAcceptHint(githubBaseURL, org string, installationID int64) string
- func IsOptionalRolePermission(role, permission string) bool
- func IsPerRepoMode(repository string, perRepoWIFRepos map[string]bool) bool
- func IsPublicMintRepos(perRepoWIFRepos map[string]bool) bool
- func ParseCustomRolePermissions(raw string) (map[string]map[string]map[string]string, error)
- func ParseForeignAllowlist(value string) []string
- func ParseOTLPHeaders(raw string) (map[string]string, error)
- func PemSecretRole(role string) string
- func PermissionLevelAtLeast(granted, requested string) bool
- func ReadForeignAllowlist(ctx context.Context, githubBaseURL, jwt string, installationID int64, ...) ([]string, error)
- func ReadForeignAllowlistFromRepo(ctx context.Context, githubBaseURL, jwt string, installationID int64, ...) ([]string, error)
- func RecordSpanError(ctx context.Context, stage string, err error)
- func RegisterCustomRoleLevels(levels map[string]map[string]map[string]string) error
- func RegisterCustomRolePermissions(perms map[string]map[string]string) error
- func ResolveOTLPTracesEndpoint(tracesEndpoint, baseEndpoint string) string
- func RoleIdentifier(role string) string
- func RoleOnlyAppIDs(ids map[string]string) map[string]string
- func RolePermissionsFor(role string) map[string]string
- func RolePermissionsForLevel(role, level string) (map[string]string, error)
- func SplitCSV(s string) []string
- func TraceHeaders(ctx context.Context) (traceparent, tracestate string)
- func ValidateLevelName(level string) error
- func ValidateOrgName(org string) error
- func ValidateRoleName(role string) error
- func ValidateWorkflowRef(ref string, workflowHostRepos map[string]bool, allowedWorkflowFiles []string) error
- type Audience
- type Claims
- type FilesystemPEMAccessor
- type GCPSecretPEMAccessor
- type GrantedScope
- func CreateInstallationToken(ctx context.Context, githubBaseURL, jwt string, installationID int64, ...) (string, string, *GrantedScope, error)
- func CreateInstallationTokenWithGrantedPermissions(ctx context.Context, githubBaseURL, jwt string, installationID int64, ...) (string, string, *GrantedScope, error)
- type Handler
- type JWKSVerifier
- type JWKSVerifierConfig
- type OIDCVerifier
- type PEMAccessor
- type STSVerifier
- type STSVerifierConfig
- type Tracer
- type TracingConfig
Constants ¶
const ( LevelRead = "read" LevelWrite = "write" )
Level constants for the two mandatory privilege level names. Every role (built-in and custom) must define at least these two levels. Custom roles may define additional named levels.
const ( TraceBackendGCF = "gcp-cloud-function" TraceBackendCloudflare = "cloudflare-worker" TraceBackendStandalone = "standalone" )
Trace backend identifiers recorded as fullsend.mint.backend.
const DefaultInferencePool = "fullsend-inference"
DefaultInferencePool is the WIF pool name used for inference workload identity federation. Shared by repos (converge) and gcf (provisioner).
Variables ¶
var ( Version string Commit string )
Version and Commit are stamped into the Cloud Function source at deployment time by the provisioner. In development (local dev, tests) they default to empty strings.
var ErrInstallationNotFound = errors.New("installation not found")
ErrInstallationNotFound is returned by FindInstallation when the GitHub API responds with 404 — meaning the repo is not covered by the GitHub App's installation.
var ErrRequiredPermissionsMissing = errors.New("required permissions missing")
ErrRequiredPermissionsMissing is returned by effectiveInstallationPermissions when the installation lacks a non-optional permission for the role.
var GitHubOrgPattern = regexp.MustCompile(`^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,37}[a-zA-Z0-9])?$`)
GitHubOrgPattern validates GitHub org/user names: alphanumeric or single hyphens, cannot start or end with a hyphen, max 39 characters.
var LevelPattern = regexp.MustCompile(`^[a-z][a-z0-9_-]{0,31}$`)
LevelPattern restricts privilege level names to safe lowercase identifiers: starts with a letter, followed by up to 31 lowercase letters, digits, underscores, or hyphens (max 32 chars total). Empty is treated as "omitted" by callers and is not validated here.
var RepoNamePattern = regexp.MustCompile(`^[a-zA-Z0-9_.][a-zA-Z0-9._-]{0,99}$`)
RepoNamePattern validates individual repo names (no org prefix). GitHub allows repos starting with dot (e.g., .fullsend, .github).
var RolePattern = regexp.MustCompile(`^[a-z][a-z0-9_-]*$`)
RolePattern restricts role to safe lowercase identifiers.
var StatusGitHubGroup string
StatusGitHubGroup is stamped into the deployed binary at build/deploy time, the same mechanism used for Version and Commit. In development and tests it defaults to the empty string.
StatusGitHubGroup is an ORG/TEAM slug. When the github build tag is active, the GitHub status validator checks that the caller is a member of this team. When the tag is absent (stub), the value is unused.
Functions ¶
func AccessGCPSecret ¶
AccessGCPSecret reads the latest version of the Secret Manager secret secretID in the given project, authenticating with the GCE metadata server token. The GCF load site uses it to read the OTLP collector headers secret. Errors never include the secret payload.
func AuthorizeToken ¶
AuthorizeToken performs the common authorization policy called by the handler after a verifier backend authenticates the token. Only callers with per-repo treatment are authorized: the caller's repository must be in PER_REPO_WIF_REPOS, or PER_REPO_WIF_REPOS must contain "*" (public mint mode). Organization membership alone (the legacy per-org ALLOWED_ORGS model) does not authorize a caller.
repository_owner must be non-empty (defense-in-depth).
func BuildRepoProviderID ¶
BuildRepoProviderID generates a GCP WIF provider ID scoped to a single repo. GCP requires 4-32 chars, [a-z][a-z0-9-]*, no trailing hyphen.
func BuiltInRoles ¶
func BuiltInRoles() []string
BuiltInRoles returns the sorted names of canonical mint roles (excludes standalone-mint custom roles registered at runtime).
func CallerAllowed ¶
CallerAllowed reports whether repository/repositoryOwner matches an allowlist entry. Entries with a slash match the repository claim exactly; bare org names match repository_owner.
func CheckServiceBaseURL ¶
CheckServiceBaseURL checks an operator-set base URL the mint trusts or sends credentials to, such as the OIDC issuer or the GitHub API: https with a host, or plain http only on localhost or 127.0.0.1 (the rule the mint client applies to mint URLs), and no userinfo, query or fragment. The error names the setting, not the value, which may carry userinfo.
func FindInstallation ¶
FindInstallation looks up a GitHub App's installation ID for a repo. The returned installation's account is verified against the expected org to prevent cross-org token leakage.
func FindOrgInstallation ¶
FindOrgInstallation looks up a GitHub App's installation ID for an organization.
func ForeignVariableName ¶
ForeignVariableName returns the org variable name for cross-org allowlist policy.
func GenerateAppJWT ¶
GenerateAppJWT creates a signed RS256 JWT for GitHub App authentication.
func GetOrgVariable ¶
func GetOrgVariable(ctx context.Context, githubBaseURL, installationToken, org, name string) (value string, exists bool, err error)
GetOrgVariable reads an org-level Actions variable using an installation token.
func GetRepoVariable ¶
func GetRepoVariable(ctx context.Context, githubBaseURL, installationToken, owner, repo, name string) (value string, exists bool, err error)
GetRepoVariable reads a repo-level Actions variable using an installation token.
func GrantedPermissionLevel ¶
GrantedPermissionLevel resolves the level an installation actually grants for a permission. GitHub implicitly grants metadata:read to every App installation, so an absent "metadata" entry is treated as "read".
func HasRole ¶
HasRole reports whether the given role has a permissions entry, checking canonical roles first (avoids atomic load on the hot path), then custom roles.
func InstallationAcceptHint ¶
InstallationAcceptHint returns a human-readable message directing an admin to Accept the pending App permission update for the given installation.
func IsOptionalRolePermission ¶
IsOptionalRolePermission reports whether the given permission may be omitted from the role's requested set — and therefore only warned about — while installations catch up with an App permission update. Every other permission the role requests is required.
func IsPerRepoMode ¶
IsPerRepoMode reports whether repository gets per-repo treatment. A repo is per-repo if it appears in PER_REPO_WIF_REPOS, or if PER_REPO_WIF_REPOS contains "*" (public mint mode).
func IsPublicMintRepos ¶
IsPublicMintRepos reports whether perRepoWIFRepos contains the wildcard entry "*", meaning every repository gets per-repo treatment (public mint mode).
func ParseCustomRolePermissions ¶
ParseCustomRolePermissions parses a CUSTOM_ROLE_PERMISSIONS JSON value, auto-detecting flat vs multi-level format per role. Returns the unified level structure.
Flat format (role → permissions): the given map is stored as both the "read" and "write" levels for the role. Both levels return the same GitHub permission values.
Multi-level format (role → {"levels": {level → permissions}}): the levels object is used as-is. Extra named levels beyond read/write are allowed; the mandatory read and write levels are enforced at registration time by validateCustomRoleLevels.
Mixed format within a single value is allowed.
func ParseForeignAllowlist ¶
ParseForeignAllowlist splits a comma-separated FOREIGN variable value into entries.
func ParseOTLPHeaders ¶
ParseOTLPHeaders parses the OTEL_EXPORTER_OTLP_HEADERS syntax: a comma-separated list of key=value pairs whose values are percent-encoded. Newlines are accepted as separators too so the same syntax works in a header file with one pair per line. Error messages never include header values.
func PemSecretRole ¶
PemSecretRole returns the PEM secret role key for a mint request role. The fix stage uses the coder PEM.
func PermissionLevelAtLeast ¶
PermissionLevelAtLeast reports whether a granted permission level satisfies the requested level.
func ReadForeignAllowlist ¶
func ReadForeignAllowlist(ctx context.Context, githubBaseURL, jwt string, installationID int64, targetOrg, role string) ([]string, error)
ReadForeignAllowlist reads FULLSEND_FOREIGN_<role>_REPOS from the target org.
func ReadForeignAllowlistFromRepo ¶
func ReadForeignAllowlistFromRepo(ctx context.Context, githubBaseURL, jwt string, installationID int64, targetOrg, targetRepo, role string) ([]string, error)
ReadForeignAllowlistFromRepo reads FULLSEND_FOREIGN_<role>_REPOS from a specific target repository. This is the repo-level counterpart of ReadForeignAllowlist, enabling per-repo foreign authorization grants.
func RecordSpanError ¶
RecordSpanError records err (redacted and bounded) on the server span in ctx and attributes the request failure to stage. It is a no-op when ctx carries no span or err is nil.
func RegisterCustomRoleLevels ¶
RegisterCustomRoleLevels adds user-defined role permissions with explicit level support. Each role maps level names to permission sets. Pass nil to clear. Returns an error if any custom role collides with a built-in role.
func RegisterCustomRolePermissions ¶
RegisterCustomRolePermissions adds user-defined role permissions that are checked alongside the canonical built-in permissions. Pass nil to clear. Returns an error if any custom role name collides with a built-in role. Used by cmd/mint (standalone mint) only; the GCF mint uses canonical roles.
The given flat permission map is stored as both the "read" and "write" levels for the role. Both levels return the same GitHub permission values — the level name selects the tier, not the individual access values.
func ResolveOTLPTracesEndpoint ¶
ResolveOTLPTracesEndpoint applies the OpenTelemetry exporter precedence: a signal-specific OTEL_EXPORTER_OTLP_TRACES_ENDPOINT is used verbatim; otherwise OTEL_EXPORTER_OTLP_ENDPOINT is used as a base URL with "/v1/traces" appended. Returns "" when neither is set.
func RoleIdentifier ¶
RoleIdentifier maps a role name onto the identifier used in environment variables, GitHub Actions secrets/variables, and similar. Hyphens become underscores and the result is uppercased so the identifier is a valid bash/Actions name. For example, "ci-check" becomes "CI_CHECK".
Roles that differ only by hyphen vs underscore (ci-check vs ci_check) share an identifier.
func RoleOnlyAppIDs ¶
RoleOnlyAppIDs extracts role-keyed entries from ROLE_APP_IDS, ignoring legacy org/role keys left over during migration.
func RolePermissionsFor ¶
RolePermissionsFor returns the write-level permissions for a role. This is a backward-compatible wrapper around RolePermissionsForLevel that returns the full (write) permission set.
func RolePermissionsForLevel ¶
RolePermissionsForLevel returns the permissions for a role at the given privilege level. Levels are keys on the role — the lookup is a simple table index with no derivation or fallback.
When level is empty it defaults to LevelRead as a safe library-level fallback. Note: the HTTP handler defaults omitted levels to LevelWrite (temporary compatibility default) before calling this function. The function checks canonical (built-in) roles first (avoids atomic load on the hot path), then custom roles. Returns a copy of the stored permission map.
Errors:
- unknown role → "no permissions defined for role %q"
- known role, missing level → "role %q has no level %q"
func SplitCSV ¶
SplitCSV splits a comma-separated string into trimmed, non-empty entries. Shared by all entrypoints for parsing config fields like AllowedWorkflowFiles, PerRepoWIFRepos, and WorkflowHostRepos.
func TraceHeaders ¶
TraceHeaders returns the traceparent and tracestate values that propagate the trace of the server span in ctx to a downstream service, with the server span as the parent. Both are empty when ctx carries no span.
func ValidateLevelName ¶
ValidateLevelName checks that a privilege level name matches LevelPattern. Empty names are allowed (callers treat them as "omitted").
func ValidateOrgName ¶
ValidateOrgName checks that an org name matches GitHubOrgPattern and does not contain double-hyphens (which would be ambiguous in secret names).
func ValidateRoleName ¶
ValidateRoleName checks that a role name matches RolePattern and does not contain double-hyphens.
func ValidateWorkflowRef ¶
func ValidateWorkflowRef(ref string, workflowHostRepos map[string]bool, allowedWorkflowFiles []string) error
ValidateWorkflowRef checks that a job_workflow_ref claim references an allowed workflow host and basename.
The workflow must be hosted by a repo in workflowHostRepos. The upstream repo (fullsend-ai/fullsend) is always accepted regardless of the workflowHostRepos contents. The workflow basename must be in allowedWorkflowFiles.
Public mode (PER_REPO_WIF_REPOS=*) is not special-cased — it uses the same path. The only difference between public and tight per-repo mode is caller enrollment (PER_REPO_WIF_REPOS=* accepts all requesting repos). See ADR 0082 §2 (revised 2026-08-05).
Types ¶
type Audience ¶
type Audience []string
Audience handles the OIDC aud claim which can be a string or array of strings.
func (*Audience) UnmarshalJSON ¶
UnmarshalJSON handles both string and array-of-strings forms.
type Claims ¶
type Claims struct {
Issuer string `json:"iss"`
Audience Audience `json:"aud"`
IssuedAt int64 `json:"iat"`
Expiry int64 `json:"exp"`
Repository string `json:"repository"`
RepositoryOwner string `json:"repository_owner"`
JobWorkflowRef string `json:"job_workflow_ref"`
}
Claims holds the subset of GitHub Actions OIDC JWT claims validated by the mint.
type FilesystemPEMAccessor ¶
type FilesystemPEMAccessor struct {
// contains filtered or unexported fields
}
FilesystemPEMAccessor reads agent PEMs from a local directory. PEM files are named {role}.pem (e.g. coder.pem, triage.pem).
func NewFilesystemPEMAccessor ¶
func NewFilesystemPEMAccessor(pemDir string) (*FilesystemPEMAccessor, error)
NewFilesystemPEMAccessor creates a PEM accessor that reads from a local directory. The directory must exist at construction time.
type GCPSecretPEMAccessor ¶
type GCPSecretPEMAccessor struct {
// contains filtered or unexported fields
}
GCPSecretPEMAccessor reads agent PEMs from GCP Secret Manager via REST API, authenticating with the GCE metadata server token. Secret naming convention: projects/{num}/secrets/fullsend-{role}-app-pem/versions/latest
func NewGCPSecretPEMAccessor ¶
func NewGCPSecretPEMAccessor(gcpProjectNum string) *GCPSecretPEMAccessor
NewGCPSecretPEMAccessor creates a PEM accessor that reads from GCP Secret Manager. HTTP requests are made via the package-internal mintHTTP function.
type GrantedScope ¶
type GrantedScope struct {
Repos []string
Permissions map[string]string
RepoSelection string
AppID string
InstallationID int64
}
GrantedScope holds the actual scope GitHub granted for the installation token.
func CreateInstallationToken ¶
func CreateInstallationToken(ctx context.Context, githubBaseURL, jwt string, installationID int64, org, role, level string, repos []string) (string, string, *GrantedScope, error)
CreateInstallationToken exchanges a JWT for an installation access token, scoped to the given repos and role-specific permissions at the requested privilege level. When level is empty, RolePermissionsForLevel defaults to LevelRead as a safe library-level fallback; the HTTP handler applies its own default (currently LevelWrite for compatibility) before calling this. The level selects a key on the role's permission table — there is no derivation or fallback.
func CreateInstallationTokenWithGrantedPermissions ¶
func CreateInstallationTokenWithGrantedPermissions(ctx context.Context, githubBaseURL, jwt string, installationID int64, org, role, level string, repos []string, granted map[string]string) (string, string, *GrantedScope, error)
CreateInstallationTokenWithGrantedPermissions mints a token after downscoping requested role permissions to those currently granted to the installation. This avoids a failed token POST while an App update is pending.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler holds dependencies for the token mint HTTP server.
func NewHandler ¶
func NewHandler(pemAccessor PEMAccessor, oidcVerifier OIDCVerifier) (*Handler, error)
NewHandler creates a Handler with the given dependencies. Configuration variables (ROLE_APP_IDS, ALLOWED_ROLES, ALLOWED_WORKFLOW_FILES, PER_REPO_WIF_REPOS, WORKFLOW_HOST_REPOS) are read once at construction time via the package-internal mintEnv accessor. On native platforms mintEnv delegates to os.Getenv; on WASM the CF Worker calls RegisterEnv before constructing the handler.
The HTTP client for GitHub API calls is obtained from the package-internal mintHTTP accessor. On native platforms this is a cached *http.Client; on WASM the Worker calls RegisterHTTP first.
The OIDC audience is the compile-time constant mintconsts.OIDCAudience — it is not read from the environment.
Load sites construct the appropriate OIDCVerifier (STSVerifier for the Cloud Function, JWKSVerifier for devmint/standalone/Worker) and pass it in. The handler only performs authorization (per-repo enrollment, workflow-ref) after the verifier authenticates the token.
func (*Handler) ServeHTTP ¶
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handles incoming token mint requests.
type JWKSVerifier ¶
type JWKSVerifier struct {
// contains filtered or unexported fields
}
JWKSVerifier validates GitHub Actions OIDC JWTs by fetching JWKS from the issuer's discovery endpoint and verifying RS256 signatures directly. It handles authentication only (token parsing, signature verification); authorization (per-repo enrollment, workflow-ref) is performed by the Handler.
func NewJWKSVerifier ¶
func NewJWKSVerifier(opts JWKSVerifierConfig) (*JWKSVerifier, error)
NewJWKSVerifier creates a verifier that validates tokens from issuerURL against the compile-time OIDC audience (mintconsts.OIDCAudience). HTTP requests are made via the package-internal mintHTTP function.
type JWKSVerifierConfig ¶
type JWKSVerifierConfig struct {
IssuerURL string
}
JWKSVerifierConfig configures a new JWKSVerifier.
type OIDCVerifier ¶
OIDCVerifier validates OIDC tokens and returns parsed claims. Implementations include JWKSVerifier (direct JWKS validation) and STSVerifier (GCP Workload Identity Federation via STS exchange).
type PEMAccessor ¶
PEMAccessor retrieves agent PEM keys by role. Implementations encapsulate the storage backend (GCP Secret Manager, local filesystem, etc.).
type STSVerifier ¶
type STSVerifier struct {
// contains filtered or unexported fields
}
STSVerifier validates OIDC tokens by exchanging them with GCP STS (Workload Identity Federation). It performs lightweight JWT pre-validation before the STS exchange. Authorization (per-repo enrollment, workflow-ref) is performed by the Handler after authentication succeeds.
func NewSTSVerifier ¶
func NewSTSVerifier(opts STSVerifierConfig) (*STSVerifier, error)
NewSTSVerifier creates a verifier that validates tokens via GCP STS exchange. The OIDC audience is the compile-time constant mintconsts.OIDCAudience. HTTP requests are made via the package-internal mintHTTP function.
type STSVerifierConfig ¶
type STSVerifierConfig struct {
STSURL string
GCPProjectNum string
WIFPoolName string
DefaultWIFProvider string
PerRepoWIFRepos map[string]bool
}
STSVerifierConfig configures a new STSVerifier.
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
Tracer records mint request spans and exports them over OTLP/HTTP. A nil *Tracer is a valid no-op tracer: it records nothing and makes no export attempt.
func NewStampedTracer ¶
NewStampedTracer builds the tracer for a CLI-deployed serverless mint. The endpoint and deployment identity are stamped into the build artifact at deploy time; rawHeaders (OTEL_EXPORTER_OTLP_HEADERS syntax) comes from the platform secret store. It returns (nil, nil) when endpoint is empty. Export stays synchronous because serverless runtimes cannot run work after the response is returned.
func NewTracer ¶
func NewTracer(cfg TracingConfig) (*Tracer, error)
NewTracer validates cfg and returns a Tracer. It returns (nil, nil) when cfg.Endpoint is empty, which disables tracing.
func (*Tracer) Shutdown ¶
Shutdown waits for pending asynchronous exports to finish or ctx to end, whichever comes first. Call it after the server has stopped accepting requests. It is a no-op on a nil Tracer or when exports are synchronous.
func (*Tracer) Wrap ¶
Wrap returns a handler that records a server span for every request served by next, sets the traceresponse header, and exports the spans when the request finishes. It lets a load site trace a handler chain that routes some requests outside Handler (for example to a fallback mint); Handler detects the existing server span and does not start a second one. GET /health is not traced. A nil Tracer returns next unchanged.
type TracingConfig ¶
type TracingConfig struct {
// Endpoint is the full OTLP/HTTP traces URL (for example
// https://collector.example/v1/traces). Empty disables tracing.
// Use ResolveOTLPTracesEndpoint to derive it from the standard
// OTEL_EXPORTER_OTLP_* settings.
Endpoint string
// Headers are sent with every export request (collector
// authentication). Values are never logged or recorded on spans.
Headers map[string]string
// ServiceName is the service.name resource attribute. Defaults to
// "fullsend-mint".
ServiceName string
// Backend identifies the mint implementation (TraceBackend*).
Backend string
// Deployment identifies the specific deployment (function name,
// Worker name, preview alias, host).
Deployment string
// ExportTimeout bounds each export attempt. Defaults to 2s.
ExportTimeout time.Duration
// MaxSampledPerSecond caps how many requests per second are recorded
// and exported, regardless of inbound sampling flags. Defaults to 20.
MaxSampledPerSecond int
// MaxConcurrentExports caps in-flight exports; telemetry is dropped
// when the cap is reached. Defaults to 4.
MaxConcurrentExports int
// AsyncExport exports spans from a background goroutine after the
// response has been returned, so a slow or unreachable collector
// cannot delay or fail mint responses. Use it where the process
// outlives the request (the standalone server) and call
// Tracer.Shutdown on exit to drain pending exports. Leave it off for
// serverless consumers, which cannot run work after returning.
AsyncExport bool
}
TracingConfig configures mint trace export. It holds plain data only so it is safe to construct on every platform, including WASM.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mintconsts holds fixed protocol constants shared by mint client and server code.
|
Package mintconsts holds fixed protocol constants shared by mint client and server code. |