Created
March 8, 2026 22:28
-
-
Save charity/bc4068af1509f7ff7ade7c7041307c9e to your computer and use it in GitHub Desktop.
honeycomb -- wide event for checkout service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_comment": "Demo wide event for Honeycomb — illustrating exponential value of context. 250 dimensions across request, user, org, infra, db, cache, trace, feature flags, performance, business, security, and experiment contexts. Any two fields can be combined. With 250 fields, that's 250*249/2 = 31,125 possible 2-way combinations — and combinatorial explosion beyond that.", | |
| "timestamp": "2025-03-07T14:23:41.872Z", | |
| "duration_ms": 342.7, | |
| "trace.trace_id": "7f3a92b1c4e05d68af291b3c7e84f012", | |
| "trace.span_id": "a1b2c3d4e5f60718", | |
| "trace.parent_span_id": "9e8d7c6b5a4f3021", | |
| "trace.span_name": "POST /api/v2/checkout/complete", | |
| "trace.span_kind": "server", | |
| "trace.root": false, | |
| "trace.root_name": "checkout_flow", | |
| "trace.root_service": "web-frontend", | |
| "trace.root_duration_ms": 1847.3, | |
| "service.name": "checkout-service", | |
| "service.version": "4.17.2", | |
| "service.environment": "production", | |
| "service.region": "us-east-1", | |
| "service.az": "us-east-1b", | |
| "service.cluster": "prod-eks-east-01", | |
| "service.namespace": "commerce", | |
| "service.pod_name": "checkout-service-7d9f8b6c4-xk2pq", | |
| "service.node_name": "ip-10-0-12-47.ec2.internal", | |
| "service.instance_id": "i-0a3f7b912cd45e678", | |
| "service.instance_type": "m6i.2xlarge", | |
| "service.container_id": "a3b9f2c1d8e047ab12cd34ef56789012", | |
| "service.deploy_id": "deploy-20250307-093142", | |
| "service.commit_sha": "f3a9d72b", | |
| "service.commit_branch": "main", | |
| "service.build_number": "8841", | |
| "service.rollout_percent": 100, | |
| "service.canary": false, | |
| "http.method": "POST", | |
| "http.route": "/api/v2/checkout/complete", | |
| "http.url": "https://api.example.com/api/v2/checkout/complete", | |
| "http.target": "/api/v2/checkout/complete?session=x", | |
| "http.status_code": 200, | |
| "http.status_class": "2xx", | |
| "http.request_content_type": "application/json", | |
| "http.response_content_type": "application/json", | |
| "http.request_body_bytes": 1842, | |
| "http.response_body_bytes": 4217, | |
| "http.user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36", | |
| "http.user_agent_parsed_browser": "Chrome", | |
| "http.user_agent_parsed_browser_version": "122.0", | |
| "http.user_agent_parsed_os": "macOS", | |
| "http.user_agent_parsed_os_version": "13.6", | |
| "http.user_agent_parsed_device": "desktop", | |
| "http.user_agent_is_bot": false, | |
| "http.referer": "https://example.com/cart", | |
| "http.protocol": "HTTP/2", | |
| "http.scheme": "https", | |
| "http.client_ip": "198.51.100.42", | |
| "http.x_forwarded_for": "198.51.100.42, 10.0.2.14", | |
| "http.request_id": "req_01HV8XZ2NQPKRMT5YW7DGJCF3B", | |
| "http.idempotency_key": "idmp_9a8b7c6d5e4f3021", | |
| "user.id": "usr_8Kf2pQrZnV4xYmL9", | |
| "user.email_domain": "acmecorp.com", | |
| "user.created_at_days_ago": 487, | |
| "user.plan": "enterprise", | |
| "user.plan_tier": "enterprise-plus", | |
| "user.role": "admin", | |
| "user.locale": "en-US", | |
| "user.timezone": "America/Chicago", | |
| "user.login_method": "sso_saml", | |
| "user.mfa_enabled": true, | |
| "user.mfa_method": "totp", | |
| "user.session_age_minutes": 23, | |
| "user.session_id": "sess_Xp7mR2qKwL8nT5vY", | |
| "user.is_internal": false, | |
| "user.is_trial": false, | |
| "user.days_since_last_login": 0, | |
| "user.logins_last_30d": 19, | |
| "user.lifetime_orders": 34, | |
| "user.lifetime_spend_usd": 28741.50, | |
| "user.cohort_month": "2023-12", | |
| "user.acquisition_channel": "sales_outbound", | |
| "user.nps_score": 9, | |
| "user.support_tickets_open": 0, | |
| "user.beta_features_enrolled": 3, | |
| "org.id": "org_QzW3jNpLvK7hR2dM", | |
| "org.name": "Acme Corp", | |
| "org.plan": "enterprise-plus", | |
| "org.seats_purchased": 250, | |
| "org.seats_used": 187, | |
| "org.created_at_days_ago": 712, | |
| "org.industry": "manufacturing", | |
| "org.size_band": "500-1000", | |
| "org.arr_usd": 180000, | |
| "org.contract_end_days": 198, | |
| "org.health_score": 82, | |
| "org.region": "north-america", | |
| "org.country": "US", | |
| "org.csm_id": "csm_m4p9q2", | |
| "org.paying": true, | |
| "org.in_dunning": false, | |
| "org.sso_enabled": true, | |
| "org.sso_provider": "okta", | |
| "org.saml_enforced": true, | |
| "org.data_residency": "us", | |
| "org.support_tier": "enterprise", | |
| "geo.country": "US", | |
| "geo.country_name": "United States", | |
| "geo.region": "IL", | |
| "geo.city": "Chicago", | |
| "geo.postal_code": "60601", | |
| "geo.latitude": 41.8827, | |
| "geo.longitude": -87.6233, | |
| "geo.timezone": "America/Chicago", | |
| "geo.asn": "AS7922", | |
| "geo.isp": "Comcast Cable", | |
| "geo.connection_type": "cable", | |
| "geo.is_vpn": false, | |
| "geo.is_proxy": false, | |
| "geo.is_datacenter": false, | |
| "request.cart_id": "cart_3hJm9pLqW8nR2vX5", | |
| "request.checkout_session_id": "chk_7fK4nPzQ2mR9wV6Y", | |
| "request.order_id": "ord_5Rb8wMpL3kN7qZ2X", | |
| "request.payment_method_type": "credit_card", | |
| "request.payment_brand": "visa", | |
| "request.payment_last4": "4242", | |
| "request.payment_gateway": "stripe", | |
| "request.coupon_applied": true, | |
| "request.coupon_code": "SUMMER20", | |
| "request.discount_percent": 20, | |
| "request.cart_item_count": 5, | |
| "request.cart_unique_skus": 3, | |
| "request.cart_total_usd": 847.40, | |
| "request.discount_amount_usd": 169.48, | |
| "request.tax_amount_usd": 72.83, | |
| "request.shipping_amount_usd": 0.00, | |
| "request.final_total_usd": 750.75, | |
| "request.currency": "USD", | |
| "request.shipping_method": "free_2day", | |
| "request.shipping_address_country": "US", | |
| "request.shipping_address_state": "IL", | |
| "request.is_gift": false, | |
| "request.is_subscription": false, | |
| "request.is_reorder": true, | |
| "request.days_since_last_order": 14, | |
| "db.primary.query_count": 7, | |
| "db.primary.duration_ms": 48.2, | |
| "db.primary.rows_read": 312, | |
| "db.primary.rows_written": 3, | |
| "db.primary.connection_wait_ms": 0.8, | |
| "db.primary.pool_size": 20, | |
| "db.primary.pool_idle": 14, | |
| "db.primary.pool_wait_count": 0, | |
| "db.primary.slow_query_count": 0, | |
| "db.primary.deadlock_count": 0, | |
| "db.primary.host": "prod-pg-primary.internal", | |
| "db.primary.engine": "postgresql", | |
| "db.primary.engine_version": "15.4", | |
| "db.replica.query_count": 3, | |
| "db.replica.duration_ms": 12.1, | |
| "db.replica.rows_read": 87, | |
| "db.replica.replication_lag_ms": 43, | |
| "cache.hit_count": 11, | |
| "cache.miss_count": 2, | |
| "cache.hit_rate": 0.846, | |
| "cache.set_count": 3, | |
| "cache.eviction_count": 0, | |
| "cache.duration_ms": 4.7, | |
| "cache.backend": "redis", | |
| "cache.cluster": "prod-redis-east-01", | |
| "cache.key_prefix": "checkout", | |
| "cache.stale_hit_count": 1, | |
| "downstream.payment_gateway.called": true, | |
| "downstream.payment_gateway.duration_ms": 187.4, | |
| "downstream.payment_gateway.status_code": 200, | |
| "downstream.payment_gateway.success": true, | |
| "downstream.payment_gateway.attempt_count": 1, | |
| "downstream.payment_gateway.3ds_required": false, | |
| "downstream.payment_gateway.fraud_score": 12, | |
| "downstream.payment_gateway.fraud_decision": "approve", | |
| "downstream.inventory.called": true, | |
| "downstream.inventory.duration_ms": 23.6, | |
| "downstream.inventory.status_code": 200, | |
| "downstream.inventory.items_reserved": 5, | |
| "downstream.inventory.out_of_stock_count": 0, | |
| "downstream.tax.called": true, | |
| "downstream.tax.duration_ms": 31.2, | |
| "downstream.tax.status_code": 200, | |
| "downstream.tax.provider": "avalara", | |
| "downstream.email.called": true, | |
| "downstream.email.duration_ms": 8.9, | |
| "downstream.email.status_code": 202, | |
| "downstream.email.template": "order_confirmation", | |
| "downstream.email.provider": "sendgrid", | |
| "downstream.loyalty.called": true, | |
| "downstream.loyalty.duration_ms": 11.3, | |
| "downstream.loyalty.points_awarded": 750, | |
| "downstream.loyalty.points_balance_new": 12480, | |
| "perf.time_to_auth_ms": 3.2, | |
| "perf.time_to_validate_cart_ms": 18.4, | |
| "perf.time_to_payment_ms": 201.1, | |
| "perf.time_to_inventory_reserve_ms": 23.6, | |
| "perf.time_to_order_write_ms": 28.7, | |
| "perf.time_to_notifications_ms": 18.9, | |
| "perf.serialization_ms": 2.1, | |
| "perf.middleware_ms": 4.3, | |
| "perf.queue_depth_at_request": 14, | |
| "perf.thread_pool_active": 22, | |
| "perf.thread_pool_size": 64, | |
| "perf.gc_pause_ms": 0.0, | |
| "perf.heap_used_mb": 412.3, | |
| "perf.heap_total_mb": 768.0, | |
| "feature_flag.new_checkout_flow": true, | |
| "feature_flag.new_checkout_flow_variant": "single_page", | |
| "feature_flag.stripe_v2_client": true, | |
| "feature_flag.loyalty_v3_points": true, | |
| "feature_flag.tax_caching": true, | |
| "feature_flag.async_email": true, | |
| "feature_flag.fraud_ml_v2": true, | |
| "feature_flag.cart_recommendations": false, | |
| "feature_flag.one_click_reorder": true, | |
| "feature_flag.address_autocomplete": true, | |
| "experiment.checkout_cta.id": "exp_checkout_cta_v4", | |
| "experiment.checkout_cta.variant": "control", | |
| "experiment.checkout_cta.enrolled_at_step": "cart", | |
| "experiment.free_shipping_threshold.id": "exp_ship_thresh_3", | |
| "experiment.free_shipping_threshold.variant": "treatment_75", | |
| "experiment.trust_badges.id": "exp_trust_badges_7", | |
| "experiment.trust_badges.variant": "treatment_b", | |
| "error": false, | |
| "error.count": 0, | |
| "error.validation_error": false, | |
| "error.payment_declined": false, | |
| "error.inventory_conflict": false, | |
| "error.retried": false, | |
| "security.auth_method": "jwt", | |
| "security.jwt_alg": "RS256", | |
| "security.jwt_age_seconds": 1372, | |
| "security.rate_limit_bucket": "user:usr_8Kf2pQrZnV4xYmL9", | |
| "security.rate_limit_remaining": 94, | |
| "security.rate_limit_hit": false, | |
| "security.ip_reputation_score": 97, | |
| "security.request_fingerprint_match": true, | |
| "security.csrf_validated": true, | |
| "security.tls_version": "TLSv1.3", | |
| "security.tls_cipher": "TLS_AES_128_GCM_SHA256", | |
| "platform.name": "web", | |
| "platform.client_version": "2025.03.04", | |
| "platform.sdk_version": "js-sdk-4.2.1", | |
| "platform.viewport_width": 1440, | |
| "platform.viewport_height": 900, | |
| "platform.screen_width": 2560, | |
| "platform.screen_height": 1600, | |
| "platform.device_pixel_ratio": 2.0, | |
| "platform.color_depth": 30, | |
| "platform.connection_type": "4g", | |
| "platform.connection_rtt_ms": 22, | |
| "platform.connection_downlink_mbps": 9.4, | |
| "platform.dark_mode": true, | |
| "queue.published_events": 4, | |
| "queue.publish_duration_ms": 2.3, | |
| "queue.topic": "orders.created", | |
| "queue.broker": "kafka", | |
| "queue.cluster": "prod-kafka-east", | |
| "queue.partition": 14, | |
| "queue.offset": 8847291, | |
| "business.gmv_usd": 750.75, | |
| "business.margin_percent": 41.2, | |
| "business.product_category_primary": "electronics", | |
| "business.product_category_secondary": "accessories", | |
| "business.brand_primary": "BrandX", | |
| "business.first_purchase_in_category": false, | |
| "business.cross_sell_items": 1, | |
| "business.upsell_accepted": false, | |
| "business.checkout_started_to_complete_minutes": 4.7, | |
| "business.cart_age_hours": 2.3, | |
| "business.channel": "web_direct", | |
| "business.attribution_first_touch": "google_cpc", | |
| "business.attribution_last_touch": "email_reengagement", | |
| "business.promo_stack_depth": 1, | |
| "load_balancer.name": "prod-alb-east-01", | |
| "load_balancer.target_group": "checkout-tg", | |
| "load_balancer.request_processing_time_ms": 0.3, | |
| "load_balancer.target_processing_time_ms": 341.8, | |
| "load_balancer.response_processing_time_ms": 0.6, | |
| "k8s.pod_restart_count": 0, | |
| "k8s.pod_age_hours": 71.4, | |
| "k8s.node_cpu_pressure": false, | |
| "k8s.node_memory_pressure": false, | |
| "k8s.hpa_replicas_current": 6, | |
| "k8s.hpa_replicas_desired": 6, | |
| "k8s.resource_limits_cpu": "2000m", | |
| "k8s.resource_limits_memory": "2Gi", | |
| "k8s.resource_requests_cpu": "500m", | |
| "k8s.resource_requests_memory": "512Mi" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment