Documentation
¶
Index ¶
Constants ¶
View Source
const ( // The following attributes are not part of semconv yet, but potential candidates for future inclusion // They are highly experimental and subject to change AttributeVCSRepositoryVisibility = "vcs.repository.visibility" AttributeVCSRepositoryRefDefault = "vcs.repository.ref.default" AttributeVCSRefHeadRevisionMessage = "vcs.ref.head.revision.message" AttributeVCSRefHeadRevisionTimestamp = "vcs.ref.head.revision.timestamp" AttributeVCSRefHeadRevisionAuthorName = "vcs.ref.head.revision.author.name" AttributeVCSRefHeadRevisionAuthorEmail = "vcs.ref.head.revision.author.email" AttributeCICDPipelineRunActorID = "cicd.pipeline.run.actor.id" AttributeCICDPipelineRunActorName = "cicd.pipeline.run.actor.name" AttributeCICDTaskEnvironmentName = "cicd.pipeline.task.run.environment.name" AttributeCICDWorkerType = "cicd.worker.type" AttributeCICDWorkerTags = "cicd.worker.tags" // The following attributes are EXCLUSIVE to GitLab but not listed under Vendor Extensions within Semantic Conventions yet // They are highly experimental and subject to change AttributeGitLabProjectNamespace = "gitlab.project.namespace" AttributeGitLabPipelineRunActorUsername = "gitlab.pipeline.run.actor.username" AttributeGitLabPipelineSource = "gitlab.pipeline.source" // Source of the pipeline: https://docs.gitlab.com/ci/jobs/job_rules/#ci_pipeline_source-predefined-variable AttributeGitLabPipelineSourcePipelineID = "gitlab.pipeline.source.pipeline.id" AttributeGitLabPipelineSourcePipelineJobID = "gitlab.pipeline.source.pipeline.job.id" AttributeGitLabPipelineSourcePipelineProjectID = "gitlab.pipeline.source.pipeline.project.id" AttributeGitLabPipelineSourcePipelineProjectNamespace = "gitlab.pipeline.source.pipeline.project.namespace" AttributeGitLabPipelineSourcePipelineProjectURL = "gitlab.pipeline.source.pipeline.project.url" AttributeGitLabJobQueuedDuration = "gitlab.job.queued_duration" AttributeGitLabJobFailureReason = "gitlab.job.failure_reason" AttributeGitLabJobAllowFailure = "gitlab.job.allow_failure" AttributeGitLabEnvironmentAction = "gitlab.environment.action" AttributeGitLabEnvironmentDeploymentTier = "gitlab.environment.deployment_tier" )
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Config ¶
type Config struct {
WebHook WebHook `mapstructure:"webhook"`
// contains filtered or unexported fields
}
Config that is exposed to this gitlab receiver through the OTEL config.yaml
type GitlabEvent ¶ added in v0.127.0
type GitlabEvent interface {
// contains filtered or unexported methods
}
GitlabEvent abstracts span setup for different GitLab event types (pipeline, stage, job) It enables unified span creation logic while allowing type-specific customization It must be implemented by all GitLab event types (pipeline, stage, job) to create spans
type GitlabHeaders ¶
type WebHook ¶
type WebHook struct {
confighttp.ServerConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct
Path string `mapstructure:"path"` // path for data collection. default is /events
HealthPath string `mapstructure:"health_path"` // path for health check api. default is /health_check
RequiredHeaders map[string]configopaque.String `mapstructure:"required_headers"` // optional setting to set one or more required headers for all requests to have (except the health check)
GitlabHeaders GitlabHeaders `mapstructure:",squash"` // GitLab headers set by default
Secret string `mapstructure:"secret"` // secret for webhook
// IncludeUserAttributes controls whether user information (commit author, pipeline actor) is included
// Default: false (user information is excluded by default for privacy)
IncludeUserAttributes bool `mapstructure:"include_user_attributes"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.