wiki.techinc.nl/tests/phpunit/unit/includes
Máté Szabó 16ec1a3703 Introduce minimal OTEL tracing library
In T340552, the official PHP OpenTelemetry client was effectively
rejected for inclusion in MediaWiki due to its size. Implement a minimal
tracing library instead that eschews conformance with the OTEL client
specification in favor of simplicity, while remaining capable of
emitting trace data in OTLP format and thus retaining compatibility with
any ingestion endpoint capable of handling OTLP.

In its current state, the library supports a basic feature set that
should be sufficient for basic tracing integration:

* Span creation, inclusive span activation and automatic parent span
  assignment,
* Span attributes and span kinds,
* Basic resource (process/request)-level metadata generation,
* Data export over OTLP.

Additional functionality, such as trace propagation, can then be
incrementally added to the library.

Bug: T340552
Change-Id: Ibc3910058cd7ed064cad293a3cdc091344e66b86
2024-10-09 15:55:31 +02:00
..
actions tests: Use namespaced classes (2) 2024-06-13 23:21:02 +02:00
api Add namespace to includes/api classes 2024-09-25 19:31:14 +00:00
auth tests: Use namespaced classes (2) 2024-06-13 23:21:02 +02:00
block tests: Make use of upstream NullLogger in tests 2024-08-15 11:58:13 +02:00
cache Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
CommentFormatter tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
composer/PhpUnitSplitter Add phpunit:parallel:extensions composer command 2024-07-17 12:32:35 +02:00
config Config: Widen @covers tags 2024-07-24 18:02:48 +02:00
content Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
dao Remove all @package comments 2024-05-10 13:53:15 +02:00
db Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats 2024-09-27 16:19:10 -04:00
debug
deferred tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
diff tests: Use namespaced classes (2) 2024-06-13 23:21:02 +02:00
edit Add namespace to WikitextContent 2024-08-06 17:42:51 +03:30
editpage Move section-check logic to ExistingSectionEditConstraint 2024-07-12 21:46:37 +00:00
exception tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
Feed
filebackend Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats 2024-09-27 16:19:10 -04:00
filerepo/file
GlobalFunctions Remove wfRemoveDotSegments, deprecated since 1.39 2024-09-06 22:00:09 +03:30
historyblob
HookContainer Remove all @package comments 2024-05-10 13:53:15 +02:00
Html
htmlform htmlform: Add missing documentation to class properties 2024-09-14 11:49:05 +00:00
http
import
installer installer: Consistently use double quotes when outputting settings 2024-09-27 14:53:46 +02:00
interwiki
jobqueue Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats 2024-09-27 16:19:10 -04:00
json Rename JsonUnserial… to JsonDeserial… 2024-06-12 14:50:58 -04:00
language status: Log getMessage()/getWikiText() calls on good Statuses 2024-10-04 18:32:24 +02:00
libs Introduce minimal OTEL tracing library 2024-10-09 15:55:31 +02:00
linker schema: Drop old pagelinks columns 2024-06-18 21:13:38 +02:00
mail mail: Improve docs, fix file headers, widen @covers 2024-05-10 19:48:43 +01:00
media tests: Use const for some static data in test files 2024-09-01 23:24:11 +02:00
Message Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
objectcache Merge "objectcache: Add regression test for MultiWrite dependency injection" 2024-09-24 04:38:56 +00:00
page Add namespace to ContentModelChange 2024-08-08 11:14:45 +02:00
ParamValidator/TypeDef Add namespace to includes/api classes 2024-09-25 19:31:14 +00:00
parser Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats 2024-09-27 16:19:10 -04:00
password Merge "tests: Use namespaced classes (2)" 2024-06-14 00:05:10 +00:00
Permissions status: Log getMessage()/getWikiText() calls on good Statuses 2024-10-04 18:32:24 +02:00
poolcounter
preferences
recentchanges recentchanges: Move rcfeed/ to includes/recentchanges/RCFeed/ 2024-08-29 03:51:40 +01:00
registration tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
Request
ResourceLoader tests: Use const for some static data in test files 2024-09-01 23:24:11 +02:00
Rest Use statslib for metrics emitted by HtmlOutputRendererHelper 2024-10-04 14:52:30 -04:00
Revision Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
revisionlist Add MediaWiki\RevisionList namespace to the related classes 2024-05-21 15:12:05 +03:30
search
session Remove all @package comments 2024-05-10 13:53:15 +02:00
Settings tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
shell
site
skins tests: Use namespaced classes (2) 2024-06-13 23:21:02 +02:00
specials/formfields tests: Use namespaced classes (2) 2024-06-13 23:21:02 +02:00
Storage ParserOutput: ensure all created ParserOutputs have a "start of parse" time set 2024-10-04 19:14:37 -04:00
StubObject tests: Add missing documentation to class properties 2024-09-18 17:25:42 +00:00
tidy tests: Use const for some static data in test files 2024-09-01 23:24:11 +02:00
title Remove unused @dataProvider from TitleValueTest 2024-07-18 15:23:00 +02:00
user Add namespace to IDBAccessObject and DBAccessObjectUtils 2024-09-27 16:19:10 -04:00
utils utils: Add missing documentation to class properties 2024-09-01 14:40:01 +00:00
watchlist watchlist: Use expression builder to avoid IDatabase::addQuotes 2024-07-18 22:34:40 +02:00
widget
WikiMap
xml Add namespace and deprecation alias to Xml and XmlSelect 2024-05-16 15:23:14 +03:30
FactoryArgTestTrait.php
SetupDynamicConfigTest.php Add MediaWiki\Registration namespace to registration classes 2024-08-10 10:08:22 +00:00