Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Tag based functionality not added when using a spanner connection

Open
#712 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
50/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
csharp
Domain
database

Research direction

Compare the direct-connection setup at Extensions/SpannerDbContextOptionsExtensions.cs#L80-L81 with the connection-string setup around #L123, focusing on the interceptors used by WithRequestTag. Reproduce the listed EF setup and verify that a Spanner tag is applied when using a direct connection; the issue is done when both setup paths provide the tag functionality.

Written by the indexing model from the issue text.

Description

priority: p2 type: bug

When using the library with a connection string it adds in two interceptors that are used to add a tag to underling commands among other things:

https://github.com/googleapis/dotnet-spanner-entity-framework/blob/8ef23f3a71130714d6ea40966d54f551c609d232/Google.Cloud.EntityFrameworkCore.Spanner/Extensions/SpannerDbContextOptionsExtensions.cs#L123

However if we use a spanner connection directly these interceptors aren't added in, meaning this functionality doesn't work:

https://github.com/googleapis/dotnet-spanner-entity-framework/blob/8ef23f3a71130714d6ea40966d54f551c609d232/Google.Cloud.EntityFrameworkCore.Spanner/Extensions/SpannerDbContextOptionsExtensions.cs#L80-L81

Environment details
  • Programming language: C#
  • OS:
  • Language runtime version: dotnet 10
  • Package version: 3.10.0 / 4.0.0
Steps to reproduce
  1. Use a spanner connection when setting up EF
  2. Use WithRequestTag extension
  3. Check whether spanner tag was applied
  4. Making sure to follow these steps will guarantee the quickest resolution possible.
Dominant language
C#
Stars
34
Forks
13
Avg merge
6h 20m
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/dotnet-spanner-entity-framework

All issues in googleapis/dotnet-spanner-entity-framework

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.