Skip to content

Commit 1f5f936

Browse files
tpellissierclaude
andcommitted
Pass table name to _operation_scope for relationship operations
Add table_name arg to create_one_to_many (referencing_entity) and create_many_to_many (entity1_logical_name) so telemetry traces and metrics can be filtered by table. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1c3b312 commit 1f5f936

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/PowerPlatform/Dataverse/operations

src/PowerPlatform/Dataverse/operations/tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def create_one_to_many_relationship(
378378
print(f"Created lookup field: {result.lookup_schema_name}")
379379
"""
380380
with self._client._scoped_odata() as od:
381-
with _operation_scope("tables.create_one_to_many_relationship"):
381+
with _operation_scope("tables.create_one_to_many_relationship", relationship.referencing_entity):
382382
raw = od._create_one_to_many_relationship(
383383
lookup,
384384
relationship,
@@ -435,7 +435,7 @@ def create_many_to_many_relationship(
435435
print(f"Created: {result.relationship_schema_name}")
436436
"""
437437
with self._client._scoped_odata() as od:
438-
with _operation_scope("tables.create_many_to_many_relationship"):
438+
with _operation_scope("tables.create_many_to_many_relationship", relationship.entity1_logical_name):
439439
raw = od._create_many_to_many_relationship(
440440
relationship,
441441
solution,

0 commit comments

Comments
 (0)