Skip to content

[docs] Add documentation for OpenTelemetry#1577

Open
andrewnicols wants to merge 1 commit intomoodle:mainfrom
andrewnicols:otel-docs
Open

[docs] Add documentation for OpenTelemetry#1577
andrewnicols wants to merge 1 commit intomoodle:mainfrom
andrewnicols:otel-docs

Conversation

@andrewnicols
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 25, 2026 14:34
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 25, 2026

Deploy Preview for moodledevdocs ready!

Name Link
🔨 Latest commit 7f16f76
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/69ecd10f490b5c00084e93da
😎 Deploy Preview https://deploy-preview-1577--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new developer documentation page describing Moodle’s Open Telemetry support (since 5.2) and updates the project cspell dictionary for new telemetry-related terms.

Changes:

  • Add a new docs/apis/telemetry/index.mdx page covering installation, configuration, and extending instrumentation.
  • Add new cspell exceptions for telemetry backend names in project-words.txt.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
docs/apis/telemetry/index.mdx Introduces an Open Telemetry API guide (since 5.2), including setup and extension guidance.
project-words.txt Adds spellcheck exceptions for newly introduced telemetry-related proper nouns.

Comment on lines +15 to +16
In order to install the Moodle Open Telemetry integration, several prerequisites are required, including:

Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence "In order to install ..., several prerequisites are required, including:" is a fragment and is immediately followed by a new paragraph. Consider either removing this line, or following it with the actual prerequisite list (and then the composer installation step).

Suggested change
In order to install the Moodle Open Telemetry integration, several prerequisites are required, including:

Copilot uses AI. Check for mistakes.
- An Open Telemetry Transport, such as HTTP (included) or [open-telemetry/transport-grpc](https://packagist.org/packages/open-telemetry/transport-grpc)
- An Open Telemetry Exporter, such as [open-telemetry/exporter-otlp](https://packagist.org/packages/open-telemetry/exporter-otlp)
- An Open Telemetry Collector, which is responsible for receiving telemetry data from Moodle and forwarding it to the telemetry backend. The Open Telemetry Collector can be deployed as a standalone service or as part of a larger monitoring infrastructure.
- A telemetry backend that supports the Open Telemetry protocol, such as [Signoz](https://signoz.io/), [Jaeger](https://www.jaegertracing.io/), [Zipkin](https://zipkin.io/), or [Prometheus](https://prometheus.io/), to receive and analyze the telemetry data collected from Moodle.
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The backend name is typically stylized as "SigNoz" (matching the project's branding). Consider updating the link text accordingly to avoid a typo/branding mismatch.

Suggested change
- A telemetry backend that supports the Open Telemetry protocol, such as [Signoz](https://signoz.io/), [Jaeger](https://www.jaegertracing.io/), [Zipkin](https://zipkin.io/), or [Prometheus](https://prometheus.io/), to receive and analyze the telemetry data collected from Moodle.
- A telemetry backend that supports the Open Telemetry protocol, such as [SigNoz](https://signoz.io/), [Jaeger](https://www.jaegertracing.io/), [Zipkin](https://zipkin.io/), or [Prometheus](https://prometheus.io/), to receive and analyze the telemetry data collected from Moodle.

Copilot uses AI. Check for mistakes.
Comment thread project-words.txt
Recaptcha
RDBM
RDBMS
Signoz
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you update the docs to use the correct "SigNoz" spelling, please update the cspell exception here to match (and remove the misspelled entry) so spellchecking stays aligned with the docs content.

Suggested change
Signoz
SigNoz

Copilot uses AI. Check for mistakes.
OTEL_PHP_DISABLED_INSTRUMENTATIONS=moodlelms
```

This will disable the Moodle Open Telemetry extension, whilst allowing other Open Telemetry integrations to continue collecting telemetry data and sending it to the telemetry backend.
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This paragraph refers to disabling the "Moodle Open Telemetry extension", but earlier the page describes an integration/package and the upstream PHP extension separately. Consider adjusting the wording here to consistently refer to the Moodle integration/instrumentation to avoid confusion about what is being disabled.

Suggested change
This will disable the Moodle Open Telemetry extension, whilst allowing other Open Telemetry integrations to continue collecting telemetry data and sending it to the telemetry backend.
This will disable the Moodle Open Telemetry integration, whilst allowing other Open Telemetry integrations to continue collecting telemetry data and sending it to the telemetry backend.

Copilot uses AI. Check for mistakes.

### Moodle-specific instrumentation

To create your own page, you should:
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"To create your own page" seems out of place in the "Moodle-specific instrumentation" section. Consider rephrasing to refer to creating your own instrumentation package/hook (since the following bullets describe package type/listeners), not a page.

Suggested change
To create your own page, you should:
To create your own Moodle-specific instrumentation package, you should:

Copilot uses AI. Check for mistakes.
Comment on lines +9 to +13
Moodle added support for Open Telemetry in version 5.2. This allows Moodle to collect telemetry data and send it to a telemetry backend for analysis and monitoring.

The Moodle Open Telemetry integration sits outside of Moodle core and follows the same pattern as other Open Telemetry integrations for PHP.

## Installation
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new API guide isn’t referenced from the main API landing page (docs/apis.md), which currently contains a curated list of APIs and has no mention of telemetry. Consider adding an entry there so the new page is discoverable from the primary API index.

Copilot uses AI. Check for mistakes.
---
title: Open Telemetry
tags:
- telemetry
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Frontmatter tags list indentation is inconsistent with other docs pages (typically either unindented - or 2-space indented). For consistency/readability, align this to the established style (e.g., see docs/apis/core/hooks/index.md:3-7 or docs/apis/plugintypes/antivirus/index.mdx:3-7).

Suggested change
- telemetry
- telemetry

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants