Skip to content

Commit e55b56d

Browse files
authored
deps(MCP): Bump flagsmith-common to 3.12, pyfakefs to 6 (#8007)
1 parent 4510b72 commit e55b56d

4 files changed

Lines changed: 90 additions & 14 deletions

File tree

mcp/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
requires-python = ">=3.11"
88
dependencies = [
99
"fastmcp>=3.3.1,<4.0.0", # Base MCP functionality
10-
"flagsmith-common[otel]>=3.10.0,<4.0.0", # Logging and OTel export
10+
"flagsmith-common[otel]>=3.12.0,<4.0.0", # Logging and OTel export
1111
"opentelemetry-instrumentation-httpx>=0.46b0,<1.0.0", # Trace upstream API calls
1212
"prometheus-client>=0.21.0,<1.0.0", # Export Prometheus metrics
1313
"pydantic-settings>=2.0.0,<3.0.0", # Environment-driven configuration
@@ -19,10 +19,10 @@ flagsmith-mcp = "flagsmith_mcp.server:run"
1919

2020
[dependency-groups]
2121
dev = [
22-
"flagsmith-common[test-tools]>=3.10.0,<4.0.0", # Shared test fixtures
22+
"flagsmith-common[test-tools]>=3.12.0,<4.0.0", # Shared test fixtures
2323
"mypy>=2.1.0,<3.0.0", # Static type checking
2424
"openapi-pydantic>=0.5.0,<1.0.0", # Build OpenAPI specs as fixtures
25-
"pyfakefs>=5.0.0,<6.0.0", # Fake filesystem for the bundled schema
25+
"pyfakefs>=6.0.0,<7.0.0", # Fake filesystem for the bundled schema
2626
"pytest>=9.0.3,<10.0.0", # Run tests
2727
"pytest-asyncio>=1.3.0,<2.0.0", # Run asynchronous tests
2828
"pytest-cov>=7.0.0,<8.0.0", # Measure test coverage

mcp/src/flagsmith_mcp/telemetry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def setup_telemetry(settings: config.Settings) -> None:
5050
log_provider = build_otel_log_provider(
5151
endpoint=f"{endpoint}/v1/logs",
5252
service_name=settings.otel_service_name,
53+
protocol="http/protobuf",
5354
)
5455
otel_processors = [
5556
add_otel_trace_context,
@@ -58,6 +59,7 @@ def setup_telemetry(settings: config.Settings) -> None:
5859
tracer_provider = build_tracer_provider(
5960
endpoint=f"{endpoint}/v1/traces",
6061
service_name=settings.otel_service_name,
62+
protocol="http/protobuf",
6163
)
6264
else:
6365
# No exporter: spans stay in-process, but still feed the API

mcp/tests/unit/test_telemetry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ def test_setup_telemetry__otlp_endpoint__exports_logs_and_traces(
7777
build_otel_log_provider_mock.assert_called_once_with(
7878
endpoint="http://collector:4318/v1/logs",
7979
service_name="flagsmith-mcp-test",
80+
protocol="http/protobuf",
8081
)
8182
build_tracer_provider_mock.assert_called_once_with(
8283
endpoint="http://collector:4318/v1/traces",
8384
service_name="flagsmith-mcp-test",
85+
protocol="http/protobuf",
8486
)
8587
make_structlog_otel_processor_mock.assert_called_once_with(
8688
build_otel_log_provider_mock.return_value

0 commit comments

Comments
 (0)