Skip to content

Instantly share code, notes, and snippets.

@owais
owais / values.md
Created December 11, 2023 20:20
telemetry patch
12a13
>             disable_host_header_fallback: true
15,19d15
<                 dimensions:
<                   destination_port: string(destination.port)
<                   request_host: request.host
<                   response_code: string(response.code)
<                   response_code_details: response.code_details
20a17
@owais
owais / after.yaml
Last active December 11, 2023 20:21
telemetry config fixed
istiod:
telemetry:
enabled: true
v2:
enabled: true
metadataExchange:
wasmEnabled: false
prometheus:
enabled: true
wasmEnabled: false
@owais
owais / before.yaml
Last active December 11, 2023 20:21
istio telemetry memory leak
istiod:
telemetry:
enabled: true
v2:
enabled: true
metadataExchange:
wasmEnabled: false
prometheus:
enabled: true
wasmEnabled: false
[tool.poetry]
name = "poetry-otel-grpc"
version = "0.1.0"
description = ""
authors = ["Maintainer Name <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.9"
[tool.poetry.dev-dependencies]
@owais
owais / gist:537b9416ff7564f5f022aa35d50a3da8
Created June 8, 2021 14:15
operator-sdk v2 vs v3 project
diff -r ./manifests/opentelemetry-operator.clusterserviceversion.yaml ../../../../opentelemetry-operator/bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml
21c21
< containerImage: quay.io/opentelemetry/opentelemetry-operator:0.21.0
---
> containerImage: quay.io/opentelemetry/opentelemetry-operator
24,25c24,25
< operators.operatorframework.io/builder: operator-sdk-v1.3.0
< operators.operatorframework.io/project_layout: go
---
> operators.operatorframework.io/builder: operator-sdk-v1.7.1+git
@owais
owais / remote_config_example.yaml
Last active March 8, 2021 19:13
Otel collector remote config example
remote_config_sources:
vault:
# vault connection config
zookeeper:
# zookeeper connection config
# any given config key for any component can be replaced with
# $load_from_remote and config loader/parser would replace it
@owais
owais / otel-threading.py
Last active January 31, 2022 16:09
opentelemetry python threading
import threading
import time
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import ConsoleSpanExporter
from opentelemetry.sdk.trace.export import SimpleExportSpanProcessor
tracer_provider = TracerProvider()
trace.set_tracer_provider(tracer_provider)
@owais
owais / main.go
Last active June 13, 2019 22:01
graceful shutdown blocks from shutting down on close
package main
import (
"flag"
)
var (
listenAddr string
)

Keybase proof

I hereby claim:

  • I am owais on github.
  • I am owais (https://keybase.io/owais) on keybase.
  • I have a public key whose fingerprint is 934A 8EDB EB0C 4C8C B468 284F 5525 61F9 327B D797

To claim this, I am signing this object:

@owais
owais / slack_badges.py
Created March 13, 2018 01:39
Slack Badge Notifications
import dbus
import dbus.service
import dbus.mainloop.glib
from gi.repository import GObject
class Service(dbus.service.Object):
def __init__(self, message):
self._message = message