Skip to content

Instantly share code, notes, and snippets.

View srikanthccv's full-sized avatar
🔪

Srikanth Chekuri srikanthccv

🔪
View GitHub Profile
@srikanthccv
srikanthccv / override-values.yaml
Created June 6, 2024 15:17
override-values.yaml
otelDeployment:
config:
receivers:
prometheus:
config:
scrape_configs:
- job_name: pod_metrics
kubernetes_sd_configs:
- role: pod
relabel_configs:
@srikanthccv
srikanthccv / delta_comparision.go
Created February 10, 2024 12:22
Script to compare delta and cumulative
package main
import (
"context"
"fmt"
"time"
"github.com/ClickHouse/clickhouse-go/v2"
)
@srikanthccv
srikanthccv / exp_hist.go
Created January 27, 2024 15:26
Test script
package main
import (
"context"
"errors"
"math/rand"
"time"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"

Morning

  1. Warm-up (5 minutes):

    • Begin with a light jog in place or jumping jacks to get your heart rate up.
    • Perform some dynamic stretches to warm up your muscles, focusing on your legs, arms, and shoulders.
  2. Circuit 1 (10 minutes):

    • Jump rope for 1 minute at a moderate pace.
    • Immediately perform 10 push-ups.
  • Repeat this sequence for a total of 5 rounds.

                                                        - │ 11887564887837025943 │ 2023-06-26 12:59:00 │ 104381 │ (prev point)
┌──────────fingerprint─┬──────────────────ts─┬──value─┐
│ 11887564887837025943 │ 2023-06-26 13:00:00 │ 104402 │
│ 11887564887837025943 │ 2023-06-26 13:01:00 │ 104461 │
│ 11887564887837025943 │ 2023-06-26 13:02:00 │ 104504 │
│ 11887564887837025943 │ 2023-06-26 13:03:00 │ 104532 │
│ 11887564887837025943 │ 2023-06-26 13:04:00 │ 104590 │
                                                        - │ 12004891769856389124 │ 2023-06-26 12:59:30 │  71476 │ (prev point)
@srikanthccv
srikanthccv / fix.patch
Created June 10, 2023 08:28
Patch to fix the test
diff --git a/exporter/opentelemetry-exporter-otlp-proto-common/tests/test_log_encoder.py b/exporter/opentelemetry-exporter-otlp-proto-common/tests/test_log_encoder.py
index c35ced93b..825950a0a 100644
--- a/exporter/opentelemetry-exporter-otlp-proto-common/tests/test_log_encoder.py
+++ b/exporter/opentelemetry-exporter-otlp-proto-common/tests/test_log_encoder.py
@@ -41,6 +41,7 @@ from opentelemetry.proto.resource.v1.resource_pb2 import (
)
from opentelemetry.sdk._logs import LogData
from opentelemetry.sdk._logs import LogRecord as SDKLogRecord
+from opentelemetry.sdk._logs import LogLimits
from opentelemetry.sdk.resources import Resource as SDKResource
@srikanthccv
srikanthccv / grpc-load-balancing.md
Created November 4, 2022 09:21 — forked from rponte/grpc-load-balancing.md
gRPC Load Balancing may not be that easy

Why gRPC load balancing is so tricky?

At a high-level, we need to understand two points:

  • gRPC is built on HTTP/2, and HTTP/2 is designed to have a single long-lived TCP connection (a sticky and persistent connection);
  • To do gRPC load balancing, we need to shift from connection balancing to request balancing;

Some interesting articles about this subject

diff --git a/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py b/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py
index d5e1f072..a03b9c6d 100644
--- a/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py
+++ b/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py
@@ -90,7 +90,11 @@ from django.conf import settings
from opentelemetry.instrumentation.django.environment_variables import (
OTEL_PYTHON_DJANGO_INSTRUMENT,
)
-from opentelemetry.instrumentation.django.middleware import _DjangoMiddleware
+from opentelemetry.instrumentation.django.middleware import (