We have an issue where we are setting the `channel...
# support
t
We have an issue where we are setting the
channel: "web"
in our track calls for Ruby SDK and it's always yet
channel: "server"
. Is there a bug here that's ignoring the channel we pass in?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
h
Hey @thankful-gpu-70135, channel is a reserve property, you can not modify the value.
You can use transformation to change it, from SDKs you can not do that.
d
@thankful-gpu-70135 Yes, we can always add a user transformation to the destination to update this property. We can refer to the below template: https://www.rudderstack.com/docs/features/transformations/templates/#rename-properties
t
@delightful-coat-13923 @high-zoo-17436 why would Channel be a reserve property? You have so many situations where a server could be proxying event on behalf of another client so this should be changeable. This seems difficult to handle in a transformation because we have say 10 different events and 7 are truly "server" events and 3 is our server firing events on behalf of a client (e.g. sign up completed). How would I be able to have a transformation know how to set the channel without some dictionary defining and event-> channel mapping?
l
channel
is a reserved property and it is for internal use. You should not depend on this.
Depending on your requirements, you can use UT or pass channel in context.
h
@thankful-gpu-70135, the
channel
property is a reserved field from an SDK (in this case Ruby) perspective, not from HTTP API. Similarly, there are other reserved fields like
context.library
, etc., which we do not expect users to override in general. In your case, you can pass the channel or some other differentiating field in the event's context and use it in the user transformation.