Consider the following workflow: https://github.com/adrielp/go-example/blob/main/.github/workflows/build.yml
It has four jobs:
- Lint
- Build
- Test
- Go Semantic Release
Consider the following workflow: https://github.com/adrielp/go-example/blob/main/.github/workflows/build.yml
It has four jobs:
| import os | |
| import typing | |
| from opentelemetry.propagators.textmap import Getter, CarrierT | |
| class EnvironmentGetter(Getter[dict]): | |
| KEY_MAPPING = { | |
| "TRACEPARENT": "traceparent", | |
| "TRACESTATE": "tracestate" | |
| # "BAGGAGE": "baggage" | |
| } |
| def setup_tracing(): | |
| resource = Resource.create() | |
| provider = TracerProvider(resource=resource) | |
| trace.set_tracer_provider(provider) | |
| provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter())) | |
| propagator = EnvPropagator(TraceContextTextMapPropagator()) | |
| set_global_textmap(propagator) | |
| tracer = trace.get_tracer("mlops.tracer") |
| receivers: | |
| ## Webhookevent receiver is used to connect to a GitHub App and receive json event logs | |
| ## The processors are used to extract/filter all the meaningful data from those logs | |
| webhookevent: | |
| endpoint: 0.0.0.0:8088 | |
| path: /events | |
| health_path: /healthcheck | |
| processors: | |
| ############################################ |
| extensions: | |
| bearertokenauth/team1: | |
| token: ${env:TOKEN} | |
| receivers: | |
| gitprovider/team1: | |
| initial_delay: 10s | |
| collection_interval: 300s | |
| scrapers: | |
| github: |
| #! /bin/bash | |
| set -euo pipefail | |
| cd opentelemetry-collector-contrib | |
| make generate | |
| pushd receiver/githubreceiver/ | |
| make tidy | |
| make moddownload | |
| go test -v ./... |
| name: githubreceiver | |
| status: | |
| type: receiver | |
| stability: development | |
| pipelines: [metrics] | |
| warnings: [] | |
| resource_attributes: | |
| organization.name: |
| { | |
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | |
| "extends": [ | |
| "config:base" | |
| ] | |
| } |
| { | |
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | |
| "extends": [ | |
| "config:base" | |
| ], | |
| "labels": ["dependencies"], | |
| "semanticCommits": "enabled", | |
| "major": { | |
| "dependencyDashboardApproval": true, | |
| "labels": ["major"] |