{"id":31444095,"url":"https://github.com/opentelemetry-php/contrib-auto-mysqli","last_synced_at":"2026-03-02T23:41:36.137Z","repository":{"id":277053958,"uuid":"901081468","full_name":"opentelemetry-php/contrib-auto-mysqli","owner":"opentelemetry-php","description":"[READONLY] mysqli auto-instrumentation","archived":false,"fork":false,"pushed_at":"2025-12-02T06:18:21.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-05T00:50:06.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opentelemetry-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-10T02:24:30.000Z","updated_at":"2025-12-02T06:18:25.000Z","dependencies_parsed_at":"2025-12-03T13:07:14.590Z","dependency_job_id":null,"html_url":"https://github.com/opentelemetry-php/contrib-auto-mysqli","commit_stats":null,"previous_names":["opentelemetry-php/contrib-auto-mysqli"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/opentelemetry-php/contrib-auto-mysqli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-auto-mysqli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-auto-mysqli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-auto-mysqli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-auto-mysqli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentelemetry-php","download_url":"https://codeload.github.com/opentelemetry-php/contrib-auto-mysqli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-auto-mysqli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30025598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T23:36:48.274Z","status":"ssl_error","status_checked_at":"2026-03-02T23:33:36.569Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-30T20:55:54.950Z","updated_at":"2026-03-02T23:41:36.124Z","avatar_url":"https://github.com/opentelemetry-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Releases](https://img.shields.io/badge/releases-purple)](https://github.com/opentelemetry-php/contrib-auto-mysqli/releases)\n[![Issues](https://img.shields.io/badge/issues-pink)](https://github.com/open-telemetry/opentelemetry-php/issues)\n[![Source](https://img.shields.io/badge/source-contrib-green)](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/MySqli)\n[![Mirror](https://img.shields.io/badge/mirror-opentelemetry--php--contrib-blue)](https://github.com/opentelemetry-php/contrib-auto-mysqli)\n[![Latest Version](http://poser.pugx.org/open-telemetry/opentelemetry-auto-mysqli/v/unstable)](https://packagist.org/packages/open-telemetry/opentelemetry-auto-mysqli/)\n[![Stable](http://poser.pugx.org/open-telemetry/opentelemetry-auto-mysqli/v/stable)](https://packagist.org/packages/open-telemetry/opentelemetry-auto-mysqli/)\n\nThis is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.\n\n# OpenTelemetry mysqli auto-instrumentation\n\nPlease read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to\ninstall and configure the extension and SDK.\n\n## Overview\nAuto-instrumentation hooks are registered via composer, and client kind spans will automatically be created when calling following functions or methods:\n\n* `mysqli_connect`\n* `mysqli::__construct`\n* `mysqli::connect`\n* `mysqli_real_connect`\n* `mysqli::real_connect`\n\n* `mysqli_query`\n* `mysqli::query`\n* `mysqli_real_query`\n* `mysqli::real_query`\n* `mysqli_execute_query`\n* `mysqli::execute_query`\n* `mysqli_multi_query`\n* `mysqli::multi_query`\n* `mysqli_next_result`\n* `mysqli::next_result`\n\n* `mysqli_begin_transaction`\n* `mysqli::begin_transaction`\n* `mysqli_rollback`\n* `mysqli::rollback`\n* `mysqli_commit`\n* `mysqli::commit`\n*\n* `mysqli_stmt_execute`\n* `mysqli_stmt::execute`\n* `mysqli_stmt_next_result`\n* `mysqli_stmt::next_result`\n\n## Configuration\n\n### Disabling mysqli instrumentation\n\nThe extension can be disabled via [runtime configuration](https://opentelemetry.io/docs/instrumentation/php/sdk/#configuration):\n\n```shell\nOTEL_PHP_DISABLED_INSTRUMENTATIONS=mysqli\n```\n\n## Database Context Propagation\n\nEnable context propagation for database queries by installing the following packages:\n```shell\ncomposer require open-telemetry/opentelemetry-sqlcommenter\n```\nCurrently, only the following functions support context propagation:\n* `mysqli::query`\n* `mysqli_query`\n* `mysqli::real_query`\n* `mysqli_real_query`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fcontrib-auto-mysqli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentelemetry-php%2Fcontrib-auto-mysqli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fcontrib-auto-mysqli/lists"}